I have following output from server. How to parse it in android? Need help.
[["1","shopknock","0","0","22","18.5123","73.8563"],["2","Food Shopei","231","1","17","18.5122","73.8562"],["10","Ccd","0","0","22","18.5211","73.857"]]
I have following output from server. How to parse it in android? Need help.
[["1","shopknock","0","0","22","18.5123","73.8563"],["2","Food Shopei","231","1","17","18.5122","73.8562"],["10","Ccd","0","0","22","18.5211","73.857"]]
You need to use JSONObject and JSONArray class. Go through the below link to clear your concept on these:
http://www.json.org/javadoc/org/json/JSONArray.html
Then, go through the below tutorial, it provides a class called ServiceHandler.java to handle your json parsing. It is quite easy:
http://www.androidhive.info/2012/01/android-json-parsing-tutorial/