java - Parsing Json response with google json -
i using wordpress json-api plugin , want call get_date_index. json response of function in below format.
{ "status": "ok", "permalinks": [ "...", "...", "..." ], "tree": { "2009": { "09": 17, "10": 20, "11": 7 }, "2010":{ } }
note: tree arranged response.tree.[year].[month].[number of posts].
how parse response java parcelable object? using google json parse response. not able understand how write java object tree response.
if mean google-gson docs effect:
gson gson = new gson(); // or use new gsonbuilder().create(); mytype target = new mytype(); mytype target2 = gson.fromjson(json, mytype.class); // deserializes json target2
json
string responsetext.
Comments
Post a Comment