Closed glyn closed 2 years ago
JSON text is a sequence of characters, an unparsed piece of JSON for interchange, with newlines and backslashes and all that. JSONPath never looks at JSON texts. JSON value is the RFC 8259 term for what JSONPath looks at.
What should be done here is replacing all occurrences of "JSON document" with "JSON value".
@cabo Fixed with a force push. Sorry for misinterpreting the issue.
Terminology that would be nice to have could be "the JSON value that represents an entire JSON text". People are often using "JSON document" for that, but that is ambiguous between the serialization (JSON text) and the data (JSON value). If the text would really benefit from such a term, maybe we should coin it.
This was opened and closed in just over 3 hours. I was asleep that entire time and had no chance to review.
Please be sure that PRs stay open for at least a day so they can be reviewed by everyone.
Thanks for the reminder @gregsdennis. Sorry I forgot.
... instead of "JSON document" or "JSON value".
"JSON value" is retained in some contexts where it refers to specific values i JSON rather than a whole document.
Fixes https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/issues/210