fetchapi how to correctly print out result json.parse() json.encode() json.stringify() code example
Example: fetch suntax
fetch('http://example.com/movies.json')
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
});