← back to notes

Introduction to JSON and APIs

Jan 8, 2021

What is JSON? How is a JSON file structured? What is a JSON for? What does JSON have to do with APIs? In this short tutorial we are going to see all this and more with a real example of an API. Let's understand JSON and its close relationship with APIS.

A JSON is a format for data exchange, which is easy to read and write. It is also easy for the computer to generate and interpret.

In this tutorial you will see how a real API gives us a JSON format for the data it sends us and how we can work with it.

The API that we are going to be using is simply an API that sends us every non-working day in Argentina, holidays, in JSON format, and we are going to make our browser interpret them with a simple Javascript script written from scratch.

Watch the video

---

> Original article in Spanish: Introducción a JSON y APIs