Working with the following json data.
{
"current_observation": {
"image": {
"url":"http://icons.wxug.com/graphics/wu2/logo_130x80.png",
"title":"Weather Underground",
"link":"http://www.wunderground.com"
},
"display_location": {
"full":"MyCity, MyState",
"city":"MyCity",
"state":"MyState",
"state_name":MyState",
"country":"MyCountry",
"country_iso3166":"MyCountry",
"zip":"MyZipCode",
},
}
Attempting to get the value from the "full". With the following the only thing I get back are the element names but not the value.
full
city
state
state_name
country
country_iso3166
zip
for each display_location in result.current_observation.display_location
?display_location
end for
Have tried ?display_location.full but get syntax error. From what I see in the sdk example this should work. Can somebody point out the simple mistake I am making? Thanks