]> git.kaiwu.me - nginx.git/commit
Core: allowed top-level scalars in the JSON parser
authorRoman Semenov <r.semenov@f5.com>
Wed, 12 Aug 2026 16:42:28 +0000 (09:42 -0700)
committerRoman S <141866642+roman-f5@users.noreply.github.com>
Mon, 24 Aug 2026 18:08:31 +0000 (11:08 -0700)
commit55db1978e25eb2befd3cd96304f11b5d5cd947c9
tree52f0278a702c54dc03d198d66d601a2eaaab7dde
parent746609903e94af856379cf2ce76f34ff3b593e31
Core: allowed top-level scalars in the JSON parser

RFC 8259 permits any JSON value as a complete document, not just
objects and arrays.  The start state now accepts strings, numbers,
and the true/false/null literals as well.  A bare top-level number,
having no closing delimiter, is emitted when input ends.
src/core/ngx_json_parse.c