Sunday 28 May 2017

Pass JSON from API into an Array for Sorting

I have the following code:

request.get(techURL, function(err, data) {
if (err) { 
console.log("no internet connection");
}
else {
   // put JSON file into an array
}

the request.get returns JSON data. I want to then use this data in an array so that I can sort the data, I couldn't find the solution for this through my searches, can anyone help?



via user3679330

No comments:

Post a Comment