i have a json response but is this standard format?
[{"code":"123","rate":"0.1","title":"sss","subtitle":"mmm"},{"code":"456","rate":"0.1","title":"bbb","subtitle":"uuu"}]
and how can i pars it in android?
new JSONObject(result.toString())
throw below exception!
06-07 11:45:54.943: W/System.err(10310): at org.json.JSON.typeMismatch(JSON.java:111)
06-07 11:45:54.943: W/System.err(10310): at org.json.JSONObject.<init>(JSONObject.java:158)
06-07 11:45:54.943: W/System.err(10310): at org.json.JSONObject.<init>(JSONObject.java:171)
new JSONArray(result.toString());