parser json BUGFIX in metadata member

Only the JSON object is allowed inside single metadata object.
diff --git a/src/parser_json.c b/src/parser_json.c
index eaaade8..4722d81 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -807,6 +807,7 @@
         /* next member */
         ret = lyjson_ctx_next(lydctx->jsonctx, &status);
         LY_CHECK_GOTO(ret, cleanup);
+        LY_CHECK_GOTO((status != LYJSON_OBJECT) && (status != LYJSON_OBJECT_CLOSED), representation_error);
     }
 
     if (nodetype == LYS_LEAFLIST) {
diff --git a/tests/fuzz/corpus/lyd_parse_mem_json/pull1585 b/tests/fuzz/corpus/lyd_parse_mem_json/pull1585
new file mode 100644
index 0000000..e9c1d5d
--- /dev/null
+++ b/tests/fuzz/corpus/lyd_parse_mem_json/pull1585
@@ -0,0 +1 @@
+{"@types:uint32":{"@":{"ns:int32":{"a":[1