From 586ad210368b775c94acbad2b105483eaf4ca05a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 8 May 2018 13:08:38 +0200 Subject: libnftables: Implement JSON parser 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 Signed-off-by: Pablo Neira Ayuso --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index c5c3b0bc..6db31c81 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -89,7 +89,7 @@ nft_SOURCES += cli.c endif if BUILD_JSON -libnftables_la_SOURCES += json.c +libnftables_la_SOURCES += json.c parser_json.c libnftables_la_LIBADD += ${JANSSON_LIBS} endif -- cgit v1.2.3