commit | c2da307d5da99f9b3be754aceb5d57ca69763f81 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jan 03 11:13:25 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | 25eb91756b5e408549cb50ffa4c35d7fa8dd33ca | |
parent | 0cc3d3d471bbfaabb38b0cc2235e14b11e37a9f0 [diff] |
parser json BUGFIX do not open next element on data skip
diff --git a/src/parser_json.c b/src/parser_json.c index 66e58ed..146b37a 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -304,9 +304,7 @@ } else if ((status == LYJSON_OBJECT) && (current == LYJSON_OBJECT_CLOSED)) { sublevels--; } - } while (current != status + 1 || sublevels); - /* open the next sibling */ - LY_CHECK_RET(lyjson_ctx_next(jsonctx, NULL)); + } while ((current != status + 1) || sublevels); return LY_SUCCESS; }