I'll elaborate a bit more on ChrisR awesome answer and bring images from his awesome reference.

A valid JSON always starts with either curly braces { or square brackets [, nothing else.

{ will start an object:

{ "key": value, "another key": value }

Hint: although javascript accepts single quotes ', JSON only takes double ones ".

[ will start an array:

[value, value]

Hint: spaces among elements are always ignored by any JSON parser.

And value is an object, array, string, number, bool or null:

So yeah, ["a", "b"] is a perfectly valid JSON, like you could try on the link Manish pointed.

Here are a few extra valid JSON examples, one per block:

{}

[0]

{"__comment": "json doesn't accept comments and you should not be commenting even in this way", "avoid!": "also, never add more than one key per line, like this"}

[{   "why":null} ]

{
  "not true": [0, false],
  "true": true,
  "not null": [0, 1, false, true, {
    "obj": null
  }, "a string"]
}
Answer from cregox on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ js โ€บ js_json_server.asp
W3Schools.com
If the file contains a JSON array, response.json() returns a JavaScript array.
๐ŸŒ
JSON Schema
json-schema.org โ€บ understanding-json-schema โ€บ reference โ€บ array
JSON Schema - array
The JSON Schema Office Hours Now Runs Weekly! Join Us!โœ• ... Arrays are used for ordered elements.
๐ŸŒ
CodeSignal
codesignal.com โ€บ learn โ€บ courses โ€บ parsing-json-with-csharp โ€บ lessons โ€บ parsing-json-arrays-and-nested-structures
Parsing JSON Arrays and Nested Structures
Welcome to this lesson on parsing ... used for exchanging data, owing to its simplicity and readability. JSON arrays are crucial when it comes to representing collections of data elements, such as employee records in a company or products in an inventory....
๐ŸŒ
Liquid-technologies
blog.liquid-technologies.com โ€บ advanced-data-structures-in-json-part-3-of-4
Advanced Data Structures in JSON: Nested Objects & Arrays
July 4, 2025 - Best Practice: Always ensure that keys within a single JSON object are unique. ... If you need to represent a collection where keys might naturally collide (e.g., using non-unique names as keys), itโ€™s generally better to use an array of objects, where each object has a unique identifier property.
๐ŸŒ
CodeSignal
codesignal.com โ€บ learn โ€บ courses โ€บ parsing-json-with-cpp โ€บ lessons โ€บ parsing-arrays-within-json-structures-using-cpp
Parsing Arrays within JSON Structures Using C++
Welcome to this lesson on parsing ... used for exchanging data, thanks to its simplicity and readability. JSON arrays play a crucial role when it comes to representing collections of data elements, such as employee records in a company or products in an inventory....
Find elsewhere
๐ŸŒ
Codefinity
codefinity.com โ€บ courses โ€บ v2 โ€บ d797f15f-39dd-4abc-8cfd-0d898dd2b885 โ€บ 372339e2-bcc5-490c-a5ee-f4d51f680045 โ€บ e304b41b-64c3-4141-9977-18b5c16467ff
Learn JSON Arrays and Nested Objects | Understanding JSON Data
JSON arrays allow you to group multiple items together using square brackets []. Each item inside a JSON array can be a simple value, such as a number or string, or a more complex object.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Learn_web_development โ€บ Core โ€บ Scripting โ€บ JSON
Working with JSON - Learn web development | MDN
2 weeks ago - If you load this JSON in your JavaScript program as a string, you can parse it into a normal object and then access the data inside it using the same dot/bracket notation we looked at in the JavaScript object basics article. For example: ... First, we have the variable name โ€” superHeroes. Inside that, we want to access the members property, so we use .members. members contains an array populated by objects.
๐ŸŒ
RestfulAPI
restfulapi.net โ€บ home โ€บ json โ€บ json array
JSON Array - Multi-dimensional Array in JSON
November 4, 2023 - JSON Array is a list of items surrounded by square brackets. Each item in the array is separated by a comma. Learn about multi-dimensional arrays.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ what-is-json-array
What is JSON Array? - GeeksforGeeks
July 23, 2025 - For example, the array below has 6 string elements, "Ram", "Shyam", "Radhika", "Akshay", "Prashant" and "Varun", each element is separated with a comma (,). ["Ram", "Shyam", "Radhika", "Akshay", "Prashant", "Varun"] Example: Here we will assign a JSON Array of Strings to the key students in the jsonStringArray object.
๐ŸŒ
JAXB
javaee.github.io โ€บ tutorial โ€บ jsonp001.html
Introduction to JSON
JSON defines only two data structures: objects and arrays. An object is a set of name-value pairs, and an array is a list of values.
๐ŸŒ
Medium
medium.com โ€บ @harshadawayal4949 โ€บ json-array-json-object-6ea512b1f66c
JSON Array & JSON Object | by Harshada Wayal | Medium
March 22, 2024 - A JSON array is ordered collection of values enclosed within square brackets โ€˜[ ]โ€™.
๐ŸŒ
JSON for Modern C++
json.nlohmann.me โ€บ api โ€บ basic_json โ€บ array
array - JSON for Modern C++
The following code shows an example for the array function. #include <iostream> #include <nlohmann/json.hpp> using json = nlohmann::json; int main() { // create JSON arrays json j_no_init_list = json::array(); json j_empty_init_list = json::array({}); json j_nonempty_init_list = json::array({1, 2, 3, 4}); json j_list_of_pairs = json::array({ {"one", 1}, {"two", 2} }); // serialize the JSON arrays std::cout << j_no_init_list << '\n'; std::cout << j_empty_init_list << '\n'; std::cout << j_nonempty_init_list << '\n'; std::cout << j_list_of_pairs << '\n'; }
๐ŸŒ
TOOLSQA
toolsqa.com โ€บ rest-assured โ€บ what-is-json
What is JSON, JSON Object and JSON Array?
Arrays are similar to Arrays that you know from any other programming language. In JSON an Array is collection of Values separated by Comma.
๐ŸŒ
Medium
medium.com โ€บ @apdharshi โ€บ difference-between-arrays-and-json-objects-fa1c8598f9f1
Difference between Arrays and JSON Objects | by APD | Medium
May 19, 2019 - These can be otherwise called as multi-dimensional arrays. [ [1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7]]; ... An object is a collection of properties, ...
๐ŸŒ
Medium
medium.com โ€บ @automatewithdevbox โ€บ understanding-simple-json-json-arrays-and-json-objects-for-api-testing-ecff88afefce
Understanding Simple JSON, JSON Arrays, and JSON Objects for API Testing | by Sdet | Medium
June 22, 2023 - Itโ€™s perfect for representing simple data structures like configuration files or API responses. ... Arrays in JSON allow you to store multiple values of the same or different types. They provide a convenient way to group related data elements.
๐ŸŒ
PrepBytes
prepbytes.com โ€บ home โ€บ arrays โ€บ json array: structure and example
JSON Array: Structure and Example
September 22, 2023 - JavaScript Arrays and JSON Arrays exhibit close similarities. JSON Arrays can store string, array, boolean, integer, object, null, and boolean values, much like their JavaScript counterparts. In JSON arrays, values are segregated by commas.