You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and as of current implementation of this library the returned paths will be [ "[$['object']['1']['3']]", "[$['object']['2']['3']]" ] and not [ "[$['object']['1', '2']['3']]" ]. I think this is inconsistent behaviour
Activity
kallestenflo commentedon Dec 17, 2015
Running with the AS_PATH_LIST option should return the same number or results as running whitout.
oleg-gr commentedon Dec 20, 2015
Isn't the call supposed to return the leaves only? It shouldn't return ['0','1'] like that, but ['0'] and ['1']
oleg-gr commentedon Jan 7, 2016
@kallestenflo Hi, any update on this issue?
oleg-gr commentedon Jan 7, 2016
Ok, one more argument towards why the returned value should be
[ "[$['object']['0']]", "[$['object']['1']]" ]and not[ "[$['object']['0', '1']]" ]Consider
Then do
and as of current implementation of this library the returned paths will be
[ "[$['object']['1']['3']]", "[$['object']['2']['3']]" ]and not[ "[$['object']['1', '2']['3']]" ]. I think this is inconsistent behaviourjochenberger commentedon Feb 19, 2016
The Jayway, Gatling and Goessner implementations have very different opinions about that one:
Jayway:
Gatling:
Goessner:
I think I'm with @oleg-gr and Gatling on this one. The result should not include the property keys.
kallestenflo commentedon Feb 19, 2016
I agree the current behavior is strange. It should work the same way as when multiple array indexes are specified.
$.array[1, 2].3evaluates the same way as$.object['1', '2'].3kallestenflo commentedon Feb 19, 2016
I think this should wait until 3.0