I have a generic JSON string containing bunch on arrays. This list can grow in future and can have n-number of repeating elements.
For ex:
"parent_node": {
"node_1": {
"a": "1",
"b": "2"
},
"node_2": {
"a": "1",
"b": "2"
},
"node_3": {
"a": "1",
"b": "2"
}
}
I can easily use static resource, but maintenance becomes a problem. My idea is to provide user friendly customization. Using JSON would be much easier for me but my salesforce users are not aware of JSON and that adds a dependency for them to learn to build a valid JSON file.
I am trying to use custom settings, but doesn't seems to be much helpful. My idea is to accommodate all future enhancements without modifying APEX code and every new addition of child elements or even parent elements must be configurable.