Parsing json array with sub objects
I want to parse this jason into java code for an android app:
{
"name":"London",
"coord":{"lon":-0.12574,"lat":51.50853},
"country":"GB",
"cnt":6,
"list":[{
"dt":1377345600,
"temp":{
"min":290.42,
"max":294.3,
"weather":[{
"id":501,
"main":"Rain",
"icon":"10d"}],
{
"dt":1377432000,
"temp":{
"min":289.81,
"max":296.92,
"weather":[{
"id":800,
"main":"Clear",
"icon":"01d"}],}
How can i do this? i know how to parse single object arrays, but how do
subobjects work?
No comments:
Post a Comment