My code:
string result = "[{"lat":"b", "lon":"d", "ulica":"ulica1"}]";
jArray = new JSONArray(result);
tab =new String[jArray.length()];
json = jArray.getJSONObject(0);
tab[0]=json.getString("lat");
tab[1]=json.getString("lon");
tab[2]=json.getString("ulica");
it throws jsonException, no value for lon. Can anyone help me?
It was my mistake instead of lon I had lot in my result string... I was looking for this misspelling from early morning .... ;P