On Fri, Jul 14, 2023 at 10:48:51AM +0200, Thomas Haller wrote: [...] > +=== nft_ctx_input_get_flags() and nft_ctx_input_set_flags() > +The flags setting controls the input format. Note how we turn on JSON input parsing if JSON output is enabled. I think we could tidy things up by introducing NFT_CTX_INPUT_JSON and flip it from nft_ctx_output_set_flags() to match NFT_CTX_OUTPUT_JSON for compatibility? Cheers, Phil