Flush stream when done writing JSON to the jersey output stream.