How I can read the JSON with luvit? I tried using
http = require 'http'
json = http.parseUrl('https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCQmWt938Z8TkdPq6uasdlbA&type=video&eventType=live&key=[API_KEY]')
print(json)
The output I wanted to be was:
{
"kind": "youtube#searchListResponse",
"etag": "sFrPwpP_AW_VDxRSD3nOMOJhmmo",
"regionCode": "BR",
"pageInfo": {
"totalResults": 0,
"resultsPerPage": 5
},
"items": []
}
but instead, I get a table