Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Following is the JSON stored in a variable data. { count: 96, value: { title: cotripWeatherStations, description: Pipes Output, link: http://pipes.yahoo.com/pipes/pipe.info?_id=f43ccc14ab9d1c88d537236e93c1525e, pubDate: Mon, 03 Sep
Following is the JSON stored in a variable "data".
{
"count": 96,
"value": {
"title": "cotripWeatherStations",
"description": "Pipes Output",
"link": "http:\/\/pipes.yahoo.com\/pipes\/pipe.info?_id=f43ccc14ab9d1c88d537236e93c1525e",
"pubDate": "Mon, 03 Sep 2012 02:17:48 +0000",
"generator": "http:\/\/pipes.yahoo.com\/pipes\/",
"callback": "",
"items": [
{
"ws:Location": {
"global:Latitude": "37.086807",
"global:Longitude": "-104.521294"
},
"ws:Device": {
"global:DeviceId": "6796",
"global:CommonName": "025N008 RATON PASS (RWIS)",
"global:Status": "enabled",
"global:EntityId": "1",
"global:RoadId": "31",
"global:RoadName": "I-25",
"global:Direction": "North",
"global:MileMarker": "8",
"global:LastUpdateDate": "2012-08-26T13:52:00.000-06:00",
"global:Icon": "theme\/cotrip.org\/images\/devices\/icon_device_weather_station_with_cam_16x23.gif"
}
}
]
}
You have to print title and it's global status in the following format using jQuery. Just write the command to parse JSON and extract "title" and "global:Status"
cotripWeatherStations = enabled
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started