I have a response like this:
{ \"songs\":{ \"2562862600\":{\"id\":\"2562862600\"\"pos\":1}, \"2562862620\":{\"id\":\"2562862620\"\"pos\"
Even shorter and with json-functions:
JSONObject songsObject = json.getJSONObject("songs"); JSONArray songsArray = songsObject.toJSONArray(songsObject.names());