I have a couple of hesitations. Firstly, I'm not sure it would be particularly helpful to pick one of the many existing variants of JSONPath for comparison (even if it was the original).
Secondly, one of the reasons for standardising JSONPath was the lack of formality, completeness, etc. in Gössner's rather brief article. So I feel the comparison would end up being rather shallow unless we attempted to compare Gössner two implementations which
would be an open-ended exercise. I'm sure migration guides will arise naturally as implementations of the JSONPath standard become more common. These can be written from the perspective of a particular language implementation
and how to migrate from an older implementation to an implementation of the standard. I feel these would be much more useful than a brief "diff" in the spec. JMC: I’m sure they will (as has happened to tools like jq). I thought that those that implemented Gössner’s JSONPath today might like a quick guide to aid them in porting their implementation to the standard.
When writing a JSONPath query that needs to work with both standard and non-standard implementations, parentheses would be necessary. However, I think we might suffer from scope creep
if the spec was to discuss how to support non-standard implementations. Other than that, using or omitting the parentheses is a matter of taste and not something I would say the spec needs to provide guidance on. I guess we could strip out the parentheses
in 1.5 for consistency. JMC: Or at least explain when/where paren might be needed. You have ABNF syntax for it, but I never found clear guidance on when to use it. I may have missed that in the read, though.
The overview in 2.1.2 states "A syntactically valid segment
MUST NOT produce errors when executing the query." This principle applies throughout and I'd like to avoid repeating this in specific sections. The confusion between an empty nodelist and "Nothing" is a concern and may need more wording to sort out, but again I'd prefer not to scatter this throughout the spec. JMC: I honestly didn’t feel it needed to be anywhere else but here. Joe |
-- last-call mailing list last-call@xxxxxxxx https://www.ietf.org/mailman/listinfo/last-call