android - How to parse iterate-name json with retrofit? -


i working retrofit , gson. have json response jsonarray don't know how parse using model class. response follows:

{      "1":{         "id":"1",       "parentid":"0",       "posi":"1",       "name":"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f",       "alt_name":"main",       "icon":"",       "skin":"",       "descr":"",       "keywords":"",       "news_sort":"",       "news_msort":"",       "news_number":"0",       "short_tpl":"",       "full_tpl":"",       "metatitle":"",       "show_sub":"0",       "allow_rss":"1"    },    "5":{         "id":"5",       "parentid":"1",       "posi":"1",       "name":"edited cat name",       "alt_name":"newcater2",       "icon":"",       "skin":"",       "descr":"",       "keywords":"",       "news_sort":"",       "news_msort":"",       "news_number":"0",       "short_tpl":"",       "full_tpl":"",       "metatitle":"",       "show_sub":"1",       "allow_rss":"1"    } } 


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -