You should be able to access that data and set it as a variable then. Here is an example:
// assuming you have an object structured like this:{people:[{name:'Andy'},{name:'Deni'}],someThing:{},someThingElse:{},}// you can do this:letpeople=[]fetch('/api/subscribers').then(response=>response.json()).then(json=>{people=json.people})people.map(()=>{// do something with the array})
It's up to you whether or not you want to store the entire data returned, which might make it easier for you in the long run:
letdata=nullletpeople=[]fetch('/api/subscribers').then(response=>response.json()).then(json=>{data=json})// data is now available to be useddata.whatever()
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You should be able to access that data and set it as a variable then. Here is an example:
It's up to you whether or not you want to store the entire data returned, which might make it easier for you in the long run: