Query editor
WITH json_raw AS (SELECT json_parse(HTTP_GET('https://currency-proxy-five.vercel.app/api/currency')) AS response),json_data AS (SELECT json_extract(response, '$.data') AS data_mapFROM json_raw),currency_array AS (SELECTkey,json_extract_scalar(json_data.data_map, format('$.%s.code', key)) AS code,CAST(json_extract_scalar(json_data.data_map, format('$.%s.value', key)) AS DOUBLE) AS rateFROM json_data,UNNEST(MAP_KEYS(CAST(json_data.data_map AS MAP(VARCHAR, JSON)))) AS t (key))SELECT * FROM currency_array;