-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BlockAwareJsonParser skipChildren level accounting. (#1444)
The BlockAwareJsonParser is used to set a checkpoint on a JSON stream and exit the current blocks that the cursor is in back to the same level of the content that it was created at. If skipChildren is called to skip over an open array or object, the internal level counter will not be updated to account for the array or object that was skipped over. This PR updates the skipChildren method to check the currentToken and conditionally decrement the internal nested level counter if we ended up at an end of an array or object.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters