I have a JSON array which contains objects such as this:
{ \"bjones\": { \"fname\": \"Betty\", \"lname\": \"Jones\", \"password\": \
Using keySet() directly excludes the necessity in iteration:
ArrayList objectKeys = new ArrayList( myJsonObject.keySet());