Setup path correctly after stream parsing a key:value object pair (#2642)
This commit is contained in:
1 parent
7d424fd52e
commit
dfd440f0de
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -299,7 +299,7 @@ static pfunc stream_token(struct jv_parser* p, char ch) {
|
||||
p->output = JV_ARRAY(jv_copy(p->path), p->next);
|
||||
p->next = jv_invalid();
|
||||
}
|
||||
p->path = jv_array_set(p->path, p->stacklen - 1, jv_true()); // ready for another name:value pair
|
||||
p->path = jv_array_set(p->path, p->stacklen - 1, jv_null()); // ready for another key:value pair
|
||||
p->last_seen = JV_LAST_COMMA;
|
||||
} else {
|
||||
assert(k == JV_KIND_NULL);
|
||||
|
||||
Reference in new issue
Block a user