Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle empty arrays #9

Open
bidoubiwa opened this issue Aug 17, 2021 · 0 comments
Open

Handle empty arrays #9

bidoubiwa opened this issue Aug 17, 2021 · 0 comments

Comments

@bidoubiwa
Copy link
Owner

When providing an empty array a trailing coma is added after the write. This, even if nothing has been written.

It can be handled using turbo-json -checker that could return an empty array type. Which is not the prefered method as it adds features not related to the original use case of the library.

The other possibility is to bring the reader to the first nom white space non closing bracket character when the root type of the json file is an array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant