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

Allow registration of custom readers, writers (to support 3rd party, custom types) #65

Closed
cowtowncoder opened this issue Jun 8, 2019 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Currently there is no way to add custom handlers for reading or writing values; only basic JDK types (basic scalars, java.util.Collections, java.util.Maps, arrays, enums) and Beans are supported. Although we can add some more JDK types, it would be useful to allow custom readers / writers to support:

  • Custom value types that do not conform to Beans (f.ex serialize as some other JSON value that JSON Object; or use different naming convention)
  • 3rd party types (like Guava collections)

For 2.10 this could be done by adding new abstract -- ReaderWriterProvider -- configurable via JSON, that allows lookups for:

  • ValueReader for deserialization
  • a new abstraction for serialization
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