[android-developers] Re: Create Parser for the given JSON

2011-01-23 Thread nation-x
Just an update for anyone who might be looking at this thread in an archive... it literally only takes 3-4 lines of code if you use Gson http://code.google.com/p/google-gson/ and Gson is so awesome that it will automatically push your json objects or arrays directly into a POJO. http://benjii.me/20

Re: [android-developers] Re: Create Parser for the given JSON

2011-01-23 Thread Faheem Khatri
Thx all, i've finally managed to create parser myself :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-develop

[android-developers] Re: Create Parser for the given JSON

2011-01-22 Thread Ben Dodson
http://developer.android.com/reference/org/json/JSONObject.html#JSONObject(java.lang.String) On Jan 22, 5:44 am, DanH wrote: > A JSON parser is about 500 lines of code -- a few hours work.  (The > encoder is another 250 or so.)  The hard part is parsing numbers per > the JSON spec. > > Or you can

[android-developers] Re: Create Parser for the given JSON

2011-01-22 Thread DanH
A JSON parser is about 500 lines of code -- a few hours work. (The encoder is another 250 or so.) The hard part is parsing numbers per the JSON spec. Or you can probably find about 50 Java implementations on the net. On Jan 22, 2:45 am, Faheem Khatri wrote: > I want to create parser for the gi