Looping through JSON properties

Well, I mean, the easy way in Processing is something like (untested):

String brokenJSON = loadStrings("data.json");
JSONObject json = parseJSONObject("{"+brokenJSON+"}");  // not loadJSONObject !