Is there efficient way to convert org.json.JSONObject to POJO model using GSON ? (At the moment U thought to do like
Gson g=new Gson();
g.fromJson(json.toString(), PersonModel.class);
json is JSONObject
).
I am using volley and in response I get instance of JSONObject and I can parse like on http://www.kpbird.com/2013/05/volley-easy-fast-networking-for-android.html but I have complex structure in models like nested lists and I would like to avoid manual extracting of data from json.