summaryrefslogtreecommitdiffstats
path: root/src/jansson.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jansson.c')
-rw-r--r--src/jansson.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jansson.c b/src/jansson.c
index 3428f2f..f446e17 100644
--- a/src/jansson.c
+++ b/src/jansson.c
@@ -98,6 +98,9 @@ json_t *nft_jansson_create_root(const void *json, json_error_t *error,
case NFT_PARSE_BUFFER:
root = json_loadb(json, strlen(json), 0, error);
break;
+ case NFT_PARSE_FILE:
+ root = json_loadf((FILE *)json, 0, error);
+ break;
default:
goto err;
}