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
"$.context.level1.[*].value2" with DEFAULT_PATH_LEAF_TO_NULL will return
[
{ "inner": 2 },
null,
{ "inner": 5}
]
ideally i want to extract [ 2, null, 5 ], and there's no way to get this now because
"$.context.level1.[ * ].value2.[ * ].inner" will return [ 2, 5 ]
*note that if "value2" for "level1" is {} instead this will [ 2, null, 5 ], but it's not possible for me to get that for now
I am wondering if it's possible/reasonable to support indexing into null return null as a configuration option?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi I am using jsonPath and hit an edge case in which i can't extract things in a persisting order:
{
"context" : [
{ "level1" : { "value1": 1, "value2": { "inner": 2 } } },
{ "level1" : { "value1": 3 } },
{ "level1" : { "value1": 4, "value2": { "inner": 5 } } }
]
}
"$.context.level1.[*].value2" with DEFAULT_PATH_LEAF_TO_NULL will return
[
{ "inner": 2 },
null,
{ "inner": 5}
]
ideally i want to extract [ 2, null, 5 ], and there's no way to get this now because
"$.context.level1.[ * ].value2.[ * ].inner" will return [ 2, 5 ]
*note that if "value2" for "level1" is {} instead this will [ 2, null, 5 ], but it's not possible for me to get that for now
I am wondering if it's possible/reasonable to support indexing into null return null as a configuration option?
Thanks!
The text was updated successfully, but these errors were encountered: