Added ability to upload data as JSON object using streams.