Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch json file

fetch('./server.json')
	.then(response => response.json())
	.then(data => console.log(data))
	.catch(err => console.error(err));
 
PREVIOUS NEXT
Tagged: #fetch #json #file
ADD COMMENT
Topic
Name
3+4 =