I need to convert a JSONObject to a Location object using gson libraries for an android project of mine. I\'m not sure on how to do this. Can anyone help me with this. Thank
Here's a tutorial for GSON - I think it should help bolster your understanding. Essentially the parsing is done like this:
String mJsonString = "...";
JsonParser parser = new JsonParser();
JsonElement mJson = parser.parse(mJsonString);
Gson gson = new Gson();
MyDataObject object = gson.fromJson(mJson, MyDataObject.class);