Details
-
New Feature
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
None
Description
It would be nice if the JSON class supported streams in addition to strings as sources and targets for JSON during parsing and serialization. In particular, I am interested in providing JSON forms to the parser via an InputStream for situations where (a) the JSON objects are very large and more importantly (b) for situations where you want to parse JSON forms from a source one after the other (i.e. a file with a series of JSON forms one after the other). It would be nice if I could create a parser object, provide it with an Input Stream, and then call parse() repeatedly, with the parser parsing and consuming from the stream one JSON object per call.
Supporting serialization to OutputStreams would be for symmetry, but also useful for similar reasons.