Jackson Streaming API does most of what DataStream does now. Exceptions are contextList (lists of values for annotations that get a different structure in XML and JSON) and all-in-one status/error responses.
We could start by reimplementing DataStream using Jackson, which would get rid of the DataStream* subclasses. Eventually we might want to eliminate DataStream altogether and just call Jackson directly.
Apart from getting rid of some code, this will give an error message if you try to construct invalid JSON/XML, which DataStream does not.
Jackson Streaming API does most of what DataStream does now. Exceptions are contextList (lists of values for annotations that get a different structure in XML and JSON) and all-in-one status/error responses.
We could start by reimplementing DataStream using Jackson, which would get rid of the DataStream* subclasses. Eventually we might want to eliminate DataStream altogether and just call Jackson directly.
Apart from getting rid of some code, this will give an error message if you try to construct invalid JSON/XML, which DataStream does not.
This is a bit of work but not difficult.