I receive the following JSON string from an API function.
\"Inbound\": { \"callRelatedFields\": [\"ANI\", \"DNIS\"], \"objects\": { \"Con
Unfortunately object properties are unordered in JavaScript so you shouldn't rely on being able to iterate over them in a particular sequence.
I would suggest accessing the properties by name in the order you need them, rather than just iterating over the list.