I receive the following JSON string from an API function.
\"Inbound\": {
\"callRelatedFields\": [\"ANI\",
\"DNIS\"],
\"objects\": {
\"Con
As per the JSON standard, an object is unordered. So if you care about the order "Contact", "Account", "cnx__Phone__c"
, put them in an array ([]
).
Maybe it's enough to put the property names themselves in an array next to the .objects
themselves, so that you still can access them by their names. Many structures are valid solutions.