Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libnftables: Implement JSON parser | Phil Sutter | 2018-05-11 | 1 | -0/+20 |
| | | | | | | | | | If JSON output setting is active in current context, try parsing any input as JSON. If the initial loading of the buffer or filename by libjansson fails, fall back to regular syntax parser. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | libnftables: Implement JSON output support | Phil Sutter | 2018-05-11 | 1 | -0/+161 |
Although technically there already is support for JSON output via 'nft export json' command, it is hardly useable since it exports all the gory details of nftables VM. Also, libnftables has no control over what is exported since the content comes directly from libnftnl. Instead, implement JSON format support for regular 'nft list' commands. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> |