In my Android client I want to receive JSON objects from a server. By googling I found a lot of different possibilities how to best parse the InputStream from the Server, but most of them wrote their own parser. Isn't there a library which does this parsing for me? Or how should I best implement it by myself?
Are you kidding me? There are more than a dozen JSON parsers on Java platform, and most work fine on Android (see http://json.org/). Two most commonly recommended choices are Jackson and Gson, and both work nicely to allow you to not only parse and write JSON, but to also bind JSON data directly to and from POJOs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With