Have you tried using an older version of the package? Try: http://mvnrepository.com/artifact/org.json/json/20140107...
java,json,escaping,sanitization,org.json
You seem to be quoting this part of the Javadoc Strings may be quoted with ' (single quote). which is preceded by The texts produced by the toString methods strictly conform to the JSON syntax rules. The constructors are more forgiving in the texts they will accept: JSON strings are...
php,android,json,android-studio,org.json
The problem is that you have an object wrapper around your array. Replace JSONArray usuariosJson = new JSONArray(jsonString); With JSONObject usuariosWrapper = new JSONObject(jsonString); JSONArray usuariosJson = usuariosWrapper.getJSONArray("usuarios"); ...
java,gradle,dependency-management,org.json,maven-central
(In Netbeans) Right-clicking the project and selecting 'Reload Project' did the trick.