Importance Of JSONPath | JSONPath Vs XPath | Retrieve Data Using JSONPath Expressions
Agenda: 1) What is JSONPath 2) Difference between JSONPath and XPath 3) JSONPath & XPath Expressions and Syntax 4) How retrieve data from JSON using JSON Path Practical Demo 1) What is JSONPath JSONPath is a query language for the JSON, similar to XPATH for XML. JSONPath uses special notation to represent nodes and their connections to adjacent nodes in a JSONPath. There are two styles of notation and they are same, namely Bracket : $[‘store’][‘book’][0][‘author’] Dot : $.store.book[0].author Where, The dollar sign ($) represents root member object 2) Difference between JSONPath and XPath JSONPath : JSONPath expressions always refer to a JSON structure Square brackets in JSONPath operate on the object or array addressed by the previous path fragment Indices always start by 0 E.g : $.store.book[*].author Currently only single quotes allowed inside of JSO...