Build a JSON object from inbound stream.