]> git.kaiwu.me - haproxy.git/commit
MINOR: mjson: reintroduce mjson_next()
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 08:25:30 +0000 (10:25 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 08:57:21 +0000 (10:57 +0200)
commit3415abe56dc02a639a7474d4e08a8cc5959c8c65
tree6fde11b614f01b3eb3b07c3eebd9bb1841c1e1ad
parentcf72132f222b0997fe856eab00b122cb41eba86f
MINOR: mjson: reintroduce mjson_next()

The lack of mjson_next() prevents to iterate easily and need to hack by
iterating on a loop of snprintf + $.field[XXX] combined with
mjson_find().

This reintroduce mjson_next() so we could iterate without having to
build the string.

The patch does not reintroduce MJSON_ENABLE_NEXT so it could be used
without having to define it.
include/import/mjson.h
src/mjson.c