diff options
Diffstat (limited to 'src/table.c')
-rw-r--r-- | src/table.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/table.c b/src/table.c index 7f14b32..d3ff188 100644 --- a/src/table.c +++ b/src/table.c @@ -349,10 +349,10 @@ EXPORT_SYMBOL(nft_table_parse); static int nft_table_snprintf_json(char *buf, size_t size, struct nft_table *t) { return snprintf(buf, size, - "{\"table\" : {" - "\"name\" : \"%s\"," - "\"family\" : \"%s\"," - "\"flags\" : %d" + "{\"table\":{" + "\"name\":\"%s\"," + "\"family\":\"%s\"," + "\"flags\":%d" "}" "}" , t->name, nft_family2str(t->family), t->table_flags); |