forked from isagalaev/ijson
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed path when map_key is first element
gen->path always contains at least 1 element, and when a map_start event is found a new None element is added to the list. Thus the logic to find whether this map key is the first element of the prefix returned by this generator was wrong and generated ".key" for a JSON like '{"key": 1}' I've added a unit test to make sure this problem doesn't arise again. Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 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