String JSON = \"http://www.json-generator.com/j/cglqaRcMSW?indent=4\"; JSONObject jsonObject = new JSONObject(JSON); JSONObject getSth = jsonObject.getJSONObject(\"
The file that I was using was saved through Powershell in UTF-8 format. I changed it to ANSI and it fixed the problem.