JSON Data
-
Hi,
Im trying to get to the “third level” for data but am having trouble. Im trying to get the weatherDesc value{ "data": { "request": [ { "type": "LatLon", "query": "Lat 36.69 and Lon -75.92" } ], "current_condition": [ { "observation_time": "12:37 AM", "temp_C": "27", "temp_F": "80", "weatherCode": "116", "weatherDesc": [ { "value": "Partly cloudy" } ], "windspeedMiles": "4", "windspeedKmph": "6",
}
]I have tried:
{subloop:data:-1}
{subloop:current_condition:-1} <p>Condition: {weatherDesc.value}{/subloop:current_condition}
{/subloop:data:-1}and
{subloop:weatherDesc:-1} <p>1Condition: {weatherDesc.value}{/subloop:weatherDesc}with the Basenode set to data.current_condition
Thanks
Greg
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JSON Data’ is closed to new replies.