[UPDATE] convert mean stream output to valid JSON.