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) {