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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -