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

Fail to report error for trying to write field name outside Object (root level) #282

Closed
cowtowncoder opened this issue May 12, 2016 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Current check for writeFieldName() does not prevent write at root level (or possibly even in array?), and happily writes a text value. This should not be allowed as it is likely to result in invalid output.

Note: same problem occurs with CBOR and Smile as well; possibly with other format backends as well.

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