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

Stream JSON serialization #55

Open
nstdio opened this issue Jan 7, 2021 · 3 comments
Open

Stream JSON serialization #55

nstdio opened this issue Jan 7, 2021 · 3 comments

Comments

@nstdio
Copy link

nstdio commented Jan 7, 2021

Original issue: FasterXML/jackson-databind#3010

@nstdio
Copy link
Author

nstdio commented Jan 7, 2021

@cowtowncoder Essentially original question was: Is there a way to stream JSON serialization in a convenient way for user to consume. In other words, for deserialization we have MappingIterator which lazily parses the input and binds it to the POJO's, do we have same kind of feature for serialization?

@cowtowncoder
Copy link
Member

@nstdio For serialization existing target choices are:

  1. Blocking I/O (stream) -- OutputStream, Writer -- as well as secondary convenience type(s) (File)
  2. Static content -- byte[], char[], String
  3. ByteBuffer (although just a simple wrapper to adopt via OutputStream)

and question then is what else could/should be added, and where.

@nstdio
Copy link
Author

nstdio commented Apr 20, 2021

I believe this could possibly have relation to #45

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

2 participants