mirror of
https://github.com/fluencelabs/assemblyscript-json
synced 2025-04-25 06:42:24 +00:00
Fix nesting array parsing
This commit is contained in:
parent
f736f48359
commit
bf4fffab1c
@ -165,8 +165,9 @@ export class JSONDecoder<JSONHandlerT extends JSONHandler> {
|
||||
if (this.peekChar() != "[".charCodeAt(0)) {
|
||||
return false;
|
||||
}
|
||||
if (this.handler.pushArray(this.state.lastKey)) {
|
||||
this.state.lastKey = null;
|
||||
let key = this.state.lastKey;
|
||||
this.state.lastKey = null;
|
||||
if (this.handler.pushArray(key)) {
|
||||
this.readChar();
|
||||
this.skipWhitespace();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user