A basic example of using an external JSON file in JavaScript
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
data.json
index.html
script.js

README.md

external-json

A basic example of how to use an external JSON file in JavaScript, by calling it with AJAX.

This is a very raw and basic example of using JSON - I know there are elements of the code which can be improved but this was just written so I can gain an understanding of how JSON works.