JSON parsing in ANDROID (simple example)

19:22:00 Dhaval Sodha Parmar 0 Comments

JSON String


private String jString =
"{\"menu\": {\"id\": \"file\", \"value\": \"File\", \"popup\": " +
"{ \"menuitem\": [ {\"value\": \"New\",   \"onclick\": \"CreateNewDoc()\"}, " +
"{\"value\": \"Open\", \"onclick\": \"OpenDoc()\"}, {\"value\": \"Close\", " +
"\"onclick\": \"CloseDoc()\"}]}}}";


Use this code to parsing JSON.


out put of this code :

0 comments: