Quantcast
Channel: JSONPath for the JSON - Stack Overflow
Viewing all articles
Browse latest Browse all 3

JSONPath for the JSON

$
0
0

I have the below JSON

 {"RestResponse": {"messages": ["Total [36] records found."    ],"result": [        {"id": 56,"country": "IND","name": "Andhra Pradesh","abbr": "AP","area": "49506799SKM","largest_city": "Hyderabad Amaravati","capital": "Hyderabad Amaravati"        }    ]   } }

To access the name I am trying to give the JSONPath as

 $RestResponse.result[*].name

also as

 $RestResponse.result[:1].name

Both seems to be not working.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images