Implemented JSON output stream