Skip to content

Instantly share code, notes, and snippets.

@yoki
Last active December 26, 2019 23:30
Show Gist options
  • Save yoki/1dc3d6e4d65dae09547f10afd20fc161 to your computer and use it in GitHub Desktop.
Save yoki/1dc3d6e4d65dae09547f10afd20fc161 to your computer and use it in GitHub Desktop.
JS io
// Easiest
// Mydata.json.js defines a variable
<script src="mydata.json.js"></script>
//? work
fetch("test.json")
.then(response => response.json())
.then(json => console.log(json));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment