Strumento gratuito per convalidare ed estrarre il frammento di dati JSON corrispondente all’espressione di input. È necessario indicare la sintassi del percorso JSON nel formato $.< nome parametro > e l’oggetto risultato che corrisponde al nome del parametro fornito sarà visualizzato nel riquadro di output dei risultati. Vedi l’esempio JSONPath per l’utilizzo pratico.
JSON Path Examples
Following are few example jsonpath expressions and results for the above sample json data
JSONPath Expression | Description | Result |
$ | Select the root element | |
$.address.city | Select the value of 'city' element which is the direct children of 'address' element | |
$..type | Select the value of all the 'type' elements in the input json | |
$.address.length() | Select the length of the 'address' element | |
$..* | Select all the elements and its value | |
$.phoneNumbers[1] | Select the 2nd value from 'phoneNumbers' array | |
$.phoneNumbers[?(@.number)] | Select the 'phoneNumbers' element if it have 'number' element within it |