summaryrefslogtreecommitdiffstats
path: root/examples/nft-table-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-table-get.c')
-rw-r--r--examples/nft-table-get.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/nft-table-get.c b/examples/nft-table-get.c
index b113636..0d7746c 100644
--- a/examples/nft-table-get.c
+++ b/examples/nft-table-get.c
@@ -59,6 +59,10 @@ int main(int argc, char *argv[])
type = NFT_TABLE_O_XML;
argv[argc-1] = NULL;
argc--;
+ }else if (strcmp(argv[argc-1], "json") == 0) {
+ type = NFT_TABLE_O_JSON;
+ argv[argc-1] = NULL;
+ argc--;
} else if (strcmp(argv[argc - 1], "default") == 0) {
argc--;
}