RFC 9535: JSONPath: Queries for JSON documents
Summary
RFC 9535 standardises JSONPath as a language for selecting values within nested JSON data. Standardised query languages improve portability between tools. Flexible paths need limits against expensive evaluation.
Ideas
- Root and child segments navigate the document structure.
- Wildcards select several elements.
- Filter expressions narrow down results by conditions.
Remarks
- RFC 9535 has the status “Proposed Standard”; current errata and successor documents should also be checked.
Recommendations
- Limit input size and expression complexity for untrusted queries.
- Test edge cases with arrays, missing values and Unicode.
References
Read the RFC at the RFC Editor
Links to the original source and the Web Archive open in a new tab.