how do i navigate my way to get name,id etc that is within the json array … the “0” there is what is stopping me from moving forward
Hi @avionics-explorer-73 , welcome back!
I’m guessing by navigating you mean accessing elements in the response JSON?
If yes, taking your example to access the name, you can use the following:
console.log(response["0"].name);
Essentially if the JSON response contains keys with non alphabet chracters (numbers, spaces etc), use the square-bracket object access notation.
3 Likes
@xk0der Thanks … Issue solved.