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

Add general JsonGenerator.Feature, IGNORE_UNKNOWN #164

Closed
cowtowncoder opened this issue Nov 7, 2014 · 0 comments
Closed

Add general JsonGenerator.Feature, IGNORE_UNKNOWN #164

cowtowncoder opened this issue Nov 7, 2014 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Since there are binary data formats that require use of schema to indicate possible property names, there are cases where higher-level code may try to write "unknown properties". While this is often a problem that should be fixed by avoiding trying to write such values, there are cases where it would be better to be able to simply quietly suppress such attempts, and "write what you can".

One example of such format is Avro, and Avro module has a feature to do what suggested above.
However other formats like csv and protobuf would also benefit from same handling.
So even though this feature would not be applicable for all formats, it would make sense to have a feature that is ignored by formats where it makes no sense; and use where it does.
This, then, means that core module mainly just defines the feature, but it is up to individual format modules to make use of it.

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