I am using jsonpath-plus 6.01. I have following JSON:
{
"Request": {
"@Domain": "SomeDomain",
"Vehicle": {
"@ID": "E11XPD"
}
}
}
I can execute following jsonpath expression:
$.Request['@Domain']
When I want to acces ID by expression:
$.Request.Vehicle['@ID']
I have following error: "Unknown value type".
I am using library this way:
import { JSONPath } from 'jsonpath-plus';
...
JSONPath({path: pattern, json: resultJson})
How can I access @ID value in this case?
This works in http://jsonpath.herokuapp.com/