1

I am a newbie in Android , I am doing a project where json parsing is done by calling a URL. I am able to do this by using built-in json parser provided by android. But when i try to parse huge json response ,it fails. I got to know about another parser, "Jackson parser". I googled a lot,but with no luck. So , can anybody suggest me a way to parse json using Jackson parser through url?

          OR

Provide me some example links, if possible? I think, It will be helpful to other newbies like me.

2 Answers 2

1

You might want to give the package org.json a try. It is provided directly from the Android sdk. JSONObjects can directly be parsed and provided to your objects i.g. via the constructor.

Sign up to request clarification or add additional context in comments.

12 Comments

thanks, u r talking about built-in android, i successfully completed this project, i stucked at one point, when i try to parse json response of more than 3 MB
What exactly fails, when parsing that? Is there a relevant stack trace?
i am getting outofmemory exception while trying to parse huge amount of data.
So there already is an answer that looks good to me: stackoverflow.com/questions/6115494/…
|
0

Try using thed Gson lib to deserialize json objects. Less painful to use, and it supports large objects quite well.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.