Open oshadmi opened 3 years ago
Using the bracket notation is working well
select_and_then_compare("$[\"prod:id\"]", payload.clone(), json!(["G637"]));
Reading the draft specification I would say we might be converging on an interpretation of JSONPath where the colon :
should not be considered a valid char in the dot notation: https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/blob/main/draft-ietf-jsonpath-base.md#dot-selector.
@oshadmi I agree with the "ietf-wg-jsonpath" specification. What do you think?
@freestrings For the current spec/implementation, we prefer to support the colon :
as a valid character in the dot notation, since it is widely used with redis. I can try to contribute a fix for this. What do you think?
I haven't thought about how to implement it, but how about an approach of turning additional features on and off with a setting?
The following test fails due to the
$.prod:id
pathReturning an empty array
[]