Actually, Android omits a LOT of the standard J2SE JDK -- though
nothing that would impact a JSON parser.

But the usual JSON parser is built into Android. Just do new
org.json.JSONObject(<json string>)

On Apr 12, 2:33 am, vworld4u <[email protected]> wrote:
> You can use JSON Parser readily available for this purpose. Since
> Android platform is compliant with standard J2SE JDK, you can use the
> readily available open source JSON parsers.
>
> You can tryhttp://www.json.org/java
> Orhttp://json-lib.sourceforge.net
>
> I have used second one.
>
> Thanks and Regards
>
> Venkatesh T R
>
> On Apr 12, 11:10 am, prachi <[email protected]> wrote:
>
>
>
> > To parse the json file it is very much similar to parsing the xml
> > file .
> > first of all u need to create a json array which will captur all ur
> > elements for array posts and then make a json object for each element
> > of jsin array using the function jsonarray.getJSONObject(i) where i is
> > the index....
>
> > I think this will help u put for more details got hrouth the json apis
> > provided by android....
>
> > On Apr 7, 2:05 pm, Maxood <[email protected]> wrote:> I have the 
> > following JSON text that i need to parse to get pageName,
> > > pagePic, post_id, etc. What is the required code?
> > > pageInfo: {
> > > pageName: abc
> > > pagePic:http://profile.ak.fbcdn.net/object2/367/…}
>
> > > posts: [
> > > {
> > > post_id: 160119538822_302076968822
> > > actor_id: 1183856639
> > > picOfPersonWhoPosted:http://profile.ak.fbcdn.net/hprofile-ak-…
> > > nameOfPersonWhoPosted: Andrea Raquel
> > > message: Sounds cool. Can't wait to see it!
> > > likesCount: 2
> > > comments: [
> > > ]
> > > timeOfPost: 1266036226
>
> > > }- Hide quoted text -
>
> > > - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to