O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

An Exercise on the JSON Server with an AJAX Practice Application

Video Description

Learn JSON, practice making XHR requests and receiving responses in JavaScript, and set up a JSON server locally

About This Video

  • Practice exercise to build interactive application driven by local JSON DB data.
  • Learn to setup local-hosted JSON server

In Detail

Are you looking for an easy to setup local-hosted JSON server? This course is designed to help you setup and learn to practice JSON and AJAX. We’ll use it locally on our own machine and practice working with AJAX and JSON all from your computer. No CORS errors, no problem, everything will be done locally.

This model is designed to help you learn and practice JSON and will walk you through settings up JSON Server. This will give you a fully functional JSON database that you can use to practice JSON and AJAX. This course covers basics of XHR requests in JavaScript and how to GET and POST data. Then, you’ll learn how to make XHR requests, see the updates to the database directly in our editor and view the JSON database. Further, you’ll find out more about tools and resources that are used to make XML HttpRequest in JavaScript.

JavaScript Object Notation or JSON is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types. It is a very common data format used for asynchronous browser–server communication, including as a replacement for XML in some AJAX-style systems

By the end of this course, you will have all the knowledge you need to set up JSON locally and AJAX with JavaScript.