Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Use the fetch API to load the JSON

fetch("animals.json")
    .then(response => response.json())
    .then(data => {
        // Work with your data here
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Use #fetch #API #load #JSON
ADD COMMENT
Topic
Name
8+4 =