Getting data from object


I was rolling an online tutorial about making a widget with Scriptable and then try and adapt it for my own requirements.

I’ve got the data from the website using the api but it comes through differently to the tutorial.

This is how I am puling in the data:

let req = new Request(fullurl)

req.method = "GET"


response= await req.loadString()

The console log result is this:

{"results":[{"bounce_rate":100,"source":"Direct / None","visitors":4},{"bounce_rate":0,"source":"","visitors":1}]}

How do I just list one or maybe even two of them? i.e. results.visitors

1 Like