this won't work for bigger data, it's a stream - you can receive the data in multiple events, you need to use json parser that can handle streams, or buffer it