]> git.kaiwu.me - nginx.git/commit
Core: added json parser
authorRoman Semenov <r.semenov@f5.com>
Wed, 12 Aug 2026 16:40:34 +0000 (09:40 -0700)
committerRoman S <141866642+roman-f5@users.noreply.github.com>
Mon, 24 Aug 2026 18:08:31 +0000 (11:08 -0700)
commit746609903e94af856379cf2ce76f34ff3b593e31
tree298da30716c817ead8cb8adf44380d0f7eec7442
parentbc1cb5686b87b069d0fc45a65b9ceef1e3c12ab2
Core: added json parser

An event-driven JSON parser implementing the grammar of RFC 8259.
The full grammar is recognized: objects, arrays, strings with \uXXXX
escapes (including UTF-16 surrogate pairs), numbers, and the
true/false/null literals.  Tokens are reported to a caller-supplied
handler, with nesting bounded by a configurable maximum depth.

Based on previous work by Maxim Dounin.

Co-authored-by: Dmitry Volyntsev <d.volyntsev@f5.com>
auto/sources
src/core/ngx_json_parse.c [new file with mode: 0644]
src/core/ngx_json_parse.h [new file with mode: 0644]