Just a heads up that I've been using "simple JSON" with Android, and it's working pretty well. It's somewhat nicer than the default JSON included in the SDK because it's iterator-able, making for slick code:
for(JSONValue value : (JSONArray)JSONValue.parse(string)) { JSONObject obj = (JSONObject)value; ... } http://www.json.org/java/simple.txt j On Aug 20, 11:00 pm, Baran <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the reply, actually I was confused with how we can use > JSON. I suppose this is for manipulating the response we get after a > successful web service request. Please correct me if I am wrong. Still > new to this thing. > > On Aug 20, 7:00 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > > > Baran wrote: > > > Hi, > > > > I need to access a .Net web service in Rest format using JSON. I m > > > pretty new to this concept and very much confused about how this > > > works.... > > > > Any one who can give an overview of the two. I need the steps that I > > > need to follow to use JSON. Right now my doubt is how to use JSON to > > > grab to output. Lets say we create a http client and it get the > > > respone ....now what? > > > > How can we use the JSON object to manipulate the response... > > > There is a JSON parser built into Android: > > >http://code.google.com/android/reference/org/json/package-summary.html > > > And there is an HTTP client built into Android: > > >http://code.google.com/android/reference/org/apache/http/package-summ... > > > though you may wish to view the HttpClient documentation here: > > >http://hc.apache.org/ > > > Both of these are open source projects with their own documentation, on > > top of what is in Android. Both are usable in other Java projects > > outside of Android. > > > If you have specific questions regarding the use of one or the other, > > particular as it pertains to Android, write back with the details! > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > Warescription: All titles, revisions, & ebook formats, just $35/year > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---