changed streamed data to json