I’m trying to use the Android JSON library, but the version is old and there’s no constructor in JSONObject that accepts an InputStream, just a String. I can’t read all the contents of the stream to the string because it’s longer than the maximum length. Is there a way to add data to the JSONObject after the constructor? If not, how can I upgrade the version in Android?
Share
Why not you use, Gson Api, its a third party api by Google. Check following links:
http://code.google.com/p/google-gson/
https://sites.google.com/site/gson/gson-user-guide