json – how can i hide parameter in xml view ( Android)

i have a configuration in android (written in xml and json file)
sometimes i had to hide a parameter and not delete it if :
– i still need the parameter in the xml file, if a condition will fail
– i have already set value for user, and user should not change it
– For user, this parameter could/should be unnoticeable.

what modification should i do in the json file or i had also to modify the xml file
example:
json file : "PaywaveConfig": [2, 2], ==> it means min=2 and max=2
xml file:

<paywaveconfigs>
        <PaywaveConfig id="PaywaveConfig">
            <index id="index">1</index>
            <enable id="enable">true</enable>
            <aid_index id="aid_index">1</aid_index>
            <RefCurrencyConfig id="RefCurrencyConfig">
                <currency_index id="currency_index">1</currency_index>
            </RefCurrencyConfig>
            <kernel_to_use id="kernel_to_use">0003</kernel_to_use>
            <aid_options id="aid_options">05010000</aid_options>
            <terminal_transaction_qualifiers id="terminal_transaction_qualifiers">32A04000</terminal_transaction_qualifiers>
            <term_supported_fdda_versions id="term_supported_fdda_versions">00</term_supported_fdda_versions>
            <signature_suppression id="signature_suppression">false</signature_suppression>
        </PaywaveConfig>
        <PaywaveConfig id="PaywaveConfig">
            <index id="index">2</index>
            <enable id="enable">true</enable>
            <aid_index id="aid_index">2</aid_index>
            <RefCurrencyConfig id="RefCurrencyConfig">
                <currency_index id="currency_index">2</currency_index>
            </RefCurrencyConfig>
            <kernel_to_use id="kernel_to_use">0003</kernel_to_use>
            <aid_options id="aid_options">05010000</aid_options>
            <terminal_transaction_qualifiers id="terminal_transaction_qualifiers">32A04000</terminal_transaction_qualifiers>
            <term_supported_fdda_versions id="term_supported_fdda_versions">00</term_supported_fdda_versions>
            <signature_suppression id="signature_suppression">false</signature_suppression>
        </PaywaveConfig>
    </PaywaveConfigs>

Source link