String JSON = \"http://www.json-generator.com/j/cglqaRcMSW?indent=4\"; JSONObject jsonObject = new JSONObject(JSON); JSONObject getSth = jsonObject.getJSONObject(\"
Your JSON is perfectly valid. Try using these JSON classes to parse it. http://json.org/java/