use of json 28 29 in javascript

Solutions on MaxInterview for use of json 28 29 in javascript by the best coders in the world

showing results for - "use of json 28 29 in javascript"
Luana
21 Apr 2020
1fetch('http://example.com/movies.json')
2  .then(response => response.json())
3  .then(data => console.log(data));
4//Since the HTTP response is not a JSON Object, 
5//.json() extracts the JSON Object from the HTTP response