Wednesday, 15 August 2012

Android: parsing json file -



Android: parsing json file -

i need phone call url: https://login.skype.com/json/validator?new_username=name.surname

i obtain json file format. need take element associated tag "status". above link "status":406, need value 406. simple way implementing parser element?

simplest way particular situation is

jsonobject obj=new jsonobject(myjsonstring); string status=obj.getstring("status");

you'll have handle jsonexception incase tag "status" isn't found.

android json parsing

No comments:

Post a Comment