Most implementations seem to have the following issue:
Given the following JSON:
[
{
"stack": "",
"branch": [
"one/",
"two/"
]
},
{ "branch": ["three/", "four/"]}
]
The following expression yields an incorrect result:
[?stack==''].branch[?starts_with(@, 'one')] -> invalid-type
In contrast, the following similar expression returns the expected result:
[].branch[?starts_with(@, 'one')] -> [ [ "one/" ], [] ]
Please consider adding a compliance test and fixing the libraries.
Most implementations seem to have the following issue:
Given the following JSON:
[ { "stack": "", "branch": [ "one/", "two/" ] }, { "branch": ["three/", "four/"]} ]The following expression yields an incorrect result:
[?stack==''].branch[?starts_with(@, 'one')]->invalid-typeIn contrast, the following similar expression returns the expected result:
[].branch[?starts_with(@, 'one')]->[ [ "one/" ], [] ]Please consider adding a compliance test and fixing the libraries.