]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: Introduce json_add_array_new()
authorPhil Sutter <phil@nwl.cc>
Thu, 8 May 2025 15:28:02 +0000 (17:28 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 13 May 2025 08:48:53 +0000 (10:48 +0200)
commita740f2036ad0d50b4a91e110611563809dac420a
tree8d96fd798c8cc773581570b4cf388a6ea104eeba
parent38f99ee84fe6bd029fbc3d1389f42ab82fa9789c
json: Introduce json_add_array_new()

Propagate nat_stmt_add_array() to a generic helper for use in all spots
adding an array property which may reduce to a single item or even not
exist at all.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/json.c