Through the use of AJAX (XMLHttpRequest) you are able to load JSON dynamically after your website/application has loaded - this allows you to quite powerfully load extra content without having to refresh the page.
As the use of APIs in the modern world of web development is growing and real-time data analysis is becoming more relevant - I thought I would make this video to show you guys how to work with one of the most common mediums of API responses: JSON (JavaScript Object Notation).
In this video I take you through a simple example of how to make a request to a JSON data file and then convert this into a native, fully usable JavaScript object - and we do this using an XMLHttpRequest instance. No jQuery or external library is required1
For your reference, check this out:
developer.mozi...
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
8 сен 2024