Open nstdio opened 3 years ago
@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?
@nstdio For serialization existing target choices are:
OutputStream
, Writer
-- as well as secondary convenience type(s) (File
)byte[]
, char[]
, String
ByteBuffer
(although just a simple wrapper to adopt via OutputStream
)and question then is what else could/should be added, and where.
I believe this could possibly have relation to #45
Original issue: https://github.com/FasterXML/jackson-databind/issues/3010