On Thu, Aug 03, 2023 at 09:35:18PM +0200, Thomas Haller wrote: > By default, the input is parsed using the nftables grammar. When setting > NFT_CTX_OUTPUT_JSON flag, nftables will first try to parse the input as > JSON before falling back to the nftables grammar. > > But NFT_CTX_OUTPUT_JSON flag also turns on JSON for the output. Add a > flag NFT_CTX_INPUT_JSON which allows to treat only the input as JSON, > but keep the output mode unchanged. > > Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx> Reviewed-by: Phil Sutter <phil@xxxxxx>