So i have this code here, which calls from a URL and displays the array in the console
fetch('http://jsonplaceholder.typicode.com/users')
.then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem');
return;
}
response.json().then(function(data){
console.log(data);
});
}
)
.catch(function(err) {
console.log('Fetch Error', err);
})
However, it prints out:
[object Object] {
address: [object Object] {
city: "Lebsackbury",
geo: [object Object] { ... },
street: "Kattie Turnpike",
suite: "Suite 198",
zipcode: "31428-2261"
},
Any idea on how to remove the [object, object] and have it display normally, the same as in the url??