I am getting dynamic res_data value, sometimes it is array/object/string values from server according to res_stat ,so I can't parse this response using Google gson library. Different responses are given bellow according to res_stat
{"res_stat":"S","res_data":[]}
{"res_stat":"N","res_data":”"}
{"res_stat”:"E","res_data”:{}}
How can i dynamically handle this json response using google gson library? Or any other solutions for this?
Aucun commentaire:
Enregistrer un commentaire