commit | 366a4a1d2be409f760ab27b1e5c0de291ce6d9d6 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Dec 04 16:23:57 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Sat Dec 05 12:02:29 2020 +0100 |
tree | 97a3fe143ed5f3efca0f74b6260868e5a588d7df | |
parent | 5c123b063fee1dd732d677688716072220e347b1 [diff] [blame] |
data tree CHANGE optional direct use of any value
diff --git a/src/parser_json.c b/src/parser_json.c index 3f426a4..4f09f86 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1100,7 +1100,7 @@ ret = lydjson_metadata_finish(lydctx, &tree); LY_CHECK_RET(ret); - ret = lyd_create_any(snode, tree, LYD_ANYDATA_DATATREE, node); + ret = lyd_create_any(snode, tree, LYD_ANYDATA_DATATREE, 1, node); LY_CHECK_RET(ret); } } else if (ret == LY_ENOT) {