Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Read JSON File JavaScript

// read remote JSON file in javascript
fetch("https://jsonplaceholder.typicode.com/users")
  .then(function (response) {
    return response.json();
  })
  .then(function (data) {
    for (let i = 0; i < data.length; i++) {
      console.log(data[i]);
    }
  })
Source by www.tutorialstonight.com #
 
PREVIOUS NEXT
Tagged: #Read #JSON #File #JavaScript
ADD COMMENT
Topic
Name
6+2 =