I have a json file with contents like this:
{ \"aaa\":{ \"status\":\"available\", \"classkey\":\"dotnet\" }, \"bbb\":{
You don't have an array, you have an object. As such you cannot expect the keys to be in the same order on all systems. Iterate the object as objects are expected to be iterated, that is, over the keys you are given.