I have a JSON Object which I created from a .json file which looks like the follownig:
{
"key1": {
"key2": "value2",
"key3": "value3",
}
}
To generate the JSON-Object I use:
JSONObject newJSON = new JSONObject(content);
What I want to do, is to generate a String array, which contains all keys of the existing JSONObject, to easily access them.