replacing object output stream with simple json