How to use the org.json Java library with Java 7
Have you tried using an older version of the package? Try: http://mvnrepository.com/artifact/org.json/json/20140107
Have you tried using an older version of the package? Try: http://mvnrepository.com/artifact/org.json/json/20140107
Easiest (and incredibly slow and inefficient) way to do it JSONObject clone = new JSONObject(original.toString());
As Diego mentions, it’s a good idea to check the documentation (this link is now out of date – good thing we have the Wayback Machine!) before posting a question here, but now that you have: The difference is that optString returns the empty string (“”) if the key you specify doesn’t exist. getString on … Read more