Currently we have to externally buffer the json so that we can provide it as an input to JsonReader, it would be great if we could just decorate a Writer/OutputStream instead.
One use-case would be to provide json filtering as a generic ServletFilter which wraps the ServletOutputStream and applies filtering on the output in place.
Currently we have to externally buffer the json so that we can provide it as an input to
JsonReader, it would be great if we could just decorate aWriter/OutputStreaminstead.One use-case would be to provide json filtering as a generic
ServletFilterwhich wraps theServletOutputStreamand applies filtering on the output in place.