I'm using JsonPath to check matches of some json-paths
against a JSON
document with a SpringBoot
application.
It gives the following exception when I include in
operator inside the expression. But the same jsonpath
expression works fine online.
I tried debug inside jayway
code as well but had no luck in finding a resolution.
com.jayway.jsonpath.InvalidPathException: com.jayway.jsonpath.InvalidPathException: Space not allowed in path
JSON
payload:
{
"color": "red",
"price": 19.95
}
jsonpath expression
:
$.[?(@.color in ['red','blue'])]