use json_stream to simplify JSON reading