Converting Product Configuration to JSON Overrides
It is important to understand that the product configuration files provided for reference (under dist/baseconfig/product/flex/config) are javascript classes and that these have members variables and methods that can be overridden using a special JSON‑based syntax, which will be described in the following sections.
The content of the product reference files cannot be directly copied and pasted into JSON as there are some syntactical differences as shown by this comparison:
Reference Configuration Files (Javascript)
Configuration Override Files (JSON)
{
ERT: {
field: 'data.event.ert.value',
type: 'date',
readonly: '#READONLY',
},
}
 
• Field names are not surrounded by double quotes.
• Field values are surrounded by single quotes.
• Unnecessary "trailing" commas are allowed.
{
ERT: {
     "field": "data.event.ert.value",
        "type": "date",
        "readonly": "#READONLY"
}
}
 
• Field names are surrounded by double quotes.
• Field values are surrounded by double quotes.
• Unnecessary "trailing" commas are not allowed.
 
The Flex Configuration Help utility provides a simple way to do the above by selecting text from the configuration file and pressing the JSON button in the top right to copy it to the clipboard in a JSON format which can be directly used in the JSON configuration files