Somewhere in a codebase nobody has opened in years, a JSONPath query written in 2014 is still returning the wrong answer — and no test will ever catch it, because the library underneath it quietly changed its mind about what the words mean.
That is the problem RFC 9535 was written to end. Published in February 2024, it is the IETF’s normative specification for JSONPath — and it is a standard built almost entirely out of subtraction. It does not add power to the query language. It takes power away from the host languages that had been lending it, and hands the meaning back to the specification.
The short version
- RFC 9535, February 2024, is “based on Stefan Gössner’s popular JSONPath proposal (dated 2007-02-21)” and “builds on the experience from the widespread deployment of its implementations”.
- The original design was light on purpose: “instead of defining its own expression language, like XPath did, JSONPath delegated parts of a query to the underlying runtime”.
- The bill arrived later: “as JSONPath was implemented in more environments, JSONPath expressions became decreasingly portable” — and the fix concedes that “backwards compatibility is not always achieved”.
A query language that borrowed everything
JSONPath began in 2007 as a companion to JSON in PHP and JavaScript: a compact notation for reaching into a document and pulling out the piece you wanted. It borrowed the hard parts — script evaluation, regular expressions, ordering, arithmetic — and let the host language do the thinking.
That is precisely why it was easy to implement, and why it spread through a dozen libraries inside a year. Nobody had to agree on what a query meant, because nobody had to define it. The host language already had an answer, and the host language was standing right there.
Portability was the casualty
Then the queries left home. Each borrowed piece arrived from a different dialect. eval in JavaScript is not eval in Python, and two regular-expression engines will disagree about more than any reasonable person expects: greediness, Unicode classes, what counts as a word boundary, whether the whole idea was wise.
An expression that worked in one library failed in another — or, worse, succeeded and returned a different answer. The syntax travelled; the meaning stayed behind. That is the quietest form of lock-in there is, because it never announces itself. It simply makes your code correct in one place and wrong in another, and leaves you to discover which.
RFC 9535 is a standard that subtracts
Read the specification as a subtraction and it snaps into focus. Expressions must be evaluated by the rules in the document, not by whatever runtime happens to be hosting them. Regular expressions are constrained. Ordering is defined rather than inherited. Script evaluation and arithmetic — the two great gifts of the host language — are simply gone.
That is the opposite of how standards usually feel. Most standards add vocabulary and hand out new verbs. This one removed the freedom that had made implementation trivial, and made the language smaller in order to make it mean something.
Rough consensus, and the bill for it
The document is candid about the trade: “a design principle of this document is to go with a ‘consensus’ between implementations even if it is rough, as long as that does not jeopardize the objective of obtaining a usable, stable JSON query language”.
Rough is the operative word. Some expressions changed meaning between the 2007 proposal and the norm. Users of the surviving dialects kept their dialect, which is what always happens when a seventeen-year-old convention finally receives a normative text: the standard does not convert the holdouts, it gives everyone else something to point at.
There is an irony buried in the phrasing. The IETF’s own creed — rough consensus and running code — normally runs in that order, with the code proving the consensus. Here the code had been running for seventeen years in a dozen mutually incompatible directions, and the consensus had to be reverse-engineered out of it. Running code came first. The consensus is the cleanup.
What subtraction costs, and who pays
Power borrowed from an environment is free right up until the day you need the same expression somewhere else. Then the bill arrives, itemised in a specification that must re-derive every borrowed behaviour explicitly: ordering, comparison, the treatment of missing values, the exact semantics of a wildcard.
The cost is paid once by the standard and repeatedly by everyone who relied on the accidental freedom. The standard’s job is to make the second payment cheap. It rarely makes it popular.
The lesson about borrowing
Delegating to the host is a reasonable shortcut while a design is local. It becomes a liability the moment the design travels — and designs always travel, because that is the only way anyone discovers they were ambiguous.
So the rule is simple: when your format depends on an environment for meaning, write down which parts it borrows. Not because the specification will be a pleasure to read, but because at standardisation time you will be handing those parts back, one at a time, to people who have been relying on them for a decade.
JSONPath did not get standardised by being made more powerful. It got standardised by being told, at last, exactly what it meant — and by giving up everything it had been borrowing to avoid the question.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






