A better reason to replace the JSON parser is that JSONObject from org.json has parsing bugs. I see them every couple of days listening to the Twitter stream. See for example:
http://sourceforge.net/tracker/?func=detail&aid=2062744&group_id=171425&atid=857928
Also, the string "null" becomes a Java null instead of the String null.
I'd recommend looking at gson (
http://code.google.com/p/google-gson/). Clean and fast.
Also, I'd recommend just introducing a jar dependency instead of embedding the source code in your own code. There are a lot of good reasons to just use the jar.
Also, the string "null" becomes a Java null instead of the String null.
I'd recommend looking at gson (http://code.google.com/p/google-gson/). Clean and fast.
Also, I'd recommend just introducing a jar dependency instead of embedding the source code in your own code. There are a lot of good reasons to just use the jar.