parser json BUGFIX skipping object with an array
diff --git a/src/parser_json.c b/src/parser_json.c
index a7e33f9..d54d94a 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -201,7 +201,7 @@
/* next */
LY_CHECK_RET(lyjson_ctx_next(jsonctx, ¤t));
- if ((status == LYJSON_OBJECT) && (current != LYJSON_OBJECT)) {
+ if ((status == LYJSON_OBJECT) && (current != LYJSON_OBJECT) && (current != LYJSON_ARRAY)) {
/* no nested objects */
LY_CHECK_RET(lyjson_ctx_next(jsonctx, NULL));
return LY_SUCCESS;