Json – Why Iterator suddenly printed the map elements in reverse order?
Suppose we have a block of JAVA code which is iterating through the JSON file. JAVAfile // getting phoneNumbers JSONArray ja = (JSONArray) jo.get("phoneNumbers");//jo is the JSONObject of the given JSON //Iterating through phonenumbers Iterator itr2 = ja.iterator(); while (itr2.hasNext())…