Sitemap

Member-only story

Understanding JSON

A Basic Guide to Data Structuring and Access

4 min readMay 14, 2025

--

JSON, or JavaScript Object Notation, is a lightweight, text-based format for storing and exchanging data. Despite its name, JSON is language-agnostic, seamlessly integrating with programming languages like Python, Java, PHP, and many others. Its simplicity and readability make it a popular choice for representing structured data in applications such as user profiles, product catalogs, and API responses. JSON’s strength lies in its ability to represent complex data hierarchically using a clear and concise syntax. This article explores JSON’s structure, its powerful nesting capabilities, and how to access JSON data using JavaScript and Python.

If you’re not a Medium subscriber, click here to read the full article.

Press enter or click to view image in full size

1. JSON Structure: The Basics

At its core, JSON uses key-value pairs to represent data, encapsulated within curly braces { } to define an object. Keys are always strings enclosed in double quotes, and values can be strings, numbers, arrays, or even other objects. Here’s an example of a simple JSON object representing a person:

{
"name": "Peter",
"age": 18,
"hobbies": ["football", "tennis"]
}
  • Keys and Values: In the example, “name” is a key, and “Peter” is its string value…

--

--