Android json parse with Retrofit library -


i found following json formated file . possible parse retrofit ? json has key , value each section here 1 array has key , others array has values . how parse ?

{   "insertnewdatas": {     "columns": [       "id",       "operatorname",       "latitude",       "longitude",       "location",       "address",       "currencies",       "exchange",       "exchangelimits",       "workingdays",       "link",       "phone",       "email",       "datetime",       "created_at",       "updated_at"     ],     "records": [       [         3,         "coin source",         "22.3475",         "91.8123",         "chittagong",         "oxygen , chittagong",         "cash",         "option2",         "$500/month",         "30",         "no link",         "017000000000",         "arifhasnat.info@gmail.com",         "21-10-2017",         "2017-03-01 17:40:42",         "2017-03-01 17:40:42"       ],       [         4,         "coin source",         "22.3475",         "91.8123",         "chittagong",         "oxygen , chittagong",         "cash",         "option2",         "$500/month",         "30",         "no link",         "017000000000",         "arifhasnat.info@gmail.com",         "21-10-2017",         "2017-03-01 17:40:49",         "2017-03-01 17:40:49"       ],       [         5,         "bit coin",         "22.3575",         "91.8323",         "chittagong",         "chittagong",         "both",         "option1",         "$500/month",         "30",         "no link",         "017000000000",         "arifhasnat.info@gmail.com",         "21-10-2017",         "2017-03-01 17:43:34",         "2017-03-01 17:43:34"       ]     ]   } }  

by default retrofit not support automated json parsing. can use gson that. https://github.com/google/gson

a short tutorial how parse json retrofit , gson can find example here: http://www.pratikbutani.com/2016/05/android-tutorial-json-parsing-using-retrofit-part-1/

but there more tutorials out there you.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -