The web service return a JSON string like
"[{\"Id\":\"1\",\"Name\":\"Peter\"}]"
In jQuery, I can use $.parseJSON to convert it to valid JSON string
[{"Id":"1","Name":"Peter"}]
Any similar method in Android?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Android comes with org.json package to parse json, but there are other libraries that might make it easier to convert to java objects:
comes with android sdk:
other downloadble packages: