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
🌐
EDUCBA
educba.com › home › software development › software development tutorials › javascript tutorial › json array of strings
JSON Array of Strings | How JSON Array of String Works? (Examples)
April 14, 2023 - We have seen how JSON array represents an ordered list of values be it string, numbers, Boolean, or an object. Here as per the topic, we have discussed how array of strings are accessed using for loop, how array value can be deleted, multi dimensional array, a nested array with examples listed above for each.
Address: Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
Discussions

[Solved] How to manipulate a "string array" in json payload
Hey Guys, I have a question related to the “array”?! function. I want to extract to values of an array (but it actually is a string) - or I don’t know if this is the right word, it’s just a chain of values. The part of the array looks like this: … “data”:“[‘open’, ‘OK’, ... More on forums.losant.com
🌐 forums.losant.com
12
0
July 26, 2017
Create JSON with Arrays of different types?
Let's go a bit out of order: Does indentation matter in JSON? No. The only things that matter in JSON are the few symbols it uses, it ignores whitespace outside of strings. But also: I don't know how to format it to have every variable listed in the correct spot. Order does not matter in JSON. That's why every property has a name. For the rest of it, here's a quick crash course. You didn't say how you're "making a JSON file". Usually in C# these days, we use a "serialization library". MS has one in I think the System.Text namespace, but before that existed everyone used a package called Newtonsoft.JSON. They both work roughly the same: they convert C# objects to and from JSON. So if I wrote a class like this: public class Example { public int Value { get; set; } } I'd write code (sort of, I'm not double-checking) like this with Newtonsoft: var example = new Example(); example.Value = 10; var json = JsonConvert.SerializeObject(example); The JSON I'd get in return would look like: { "Value": 10 } These libraries support a lot of types by default. We can go backwards from JSON back to C#. Suppose I saw JSON like this: { "examples": [ { "Value": 10 } ] } Think about it by reading from top to bottom. This is: An object with properties: "examples", an array of objects that have these properties: "Value", an integer I see two objects in the definitions, so I need to write two classes: // "an object with an 'examples' property" // Note the name DOES NOT MATTER, because JSON objects do not have type names. public class Examples { // "an array of objects" // Note I can use a capital letter even though the JSON used lowercase, the serializer // is smart enough to handle that. public Example[] Examples { get; set; } } // "an object with a 'Value' property" public class Example { public int Value { get; set; } } The important thing to note is the serializer is smart enough to see that since Examples has an array of Example, it should try to parse the "inner" objects to fit the Example class. My second example intentionally looks a lot like your JSON. You have an object with an "APInvoices" property that is an array of other objects. THOSE objects have many properties, including some like "Images" that are arrays of OTHER objects. To serialize/deserialize your JSON, you're going to need to write 7 or 8 total C# classes. More on reddit.com
🌐 r/csharp
7
2
October 13, 2022
How to represent Json in array of array of string
You're missing a closing quote after pig, but otherwise that is valid JSON. More on reddit.com
🌐 r/learnprogramming
1
1
July 19, 2022
Can a JSON file start with an array instead of an object?
Any valid JSON primitive is also a valid top-level JSON object. A JSON file could just as easily contain a single string, or even a single floating-point number, and still be valid. More on reddit.com
🌐 r/learnprogramming
18
11
May 25, 2024
🌐
YouTube
youtube.com › shorts › 0qe_hp81Tcg
📌 JSON Array of Strings Explained (Quick Guide) - YouTube
In this short reel, learn what a JSON array of strings is and how it works in real applications. 💻Understand how JSON stores multiple text values using squa...
Published: March 12, 2026
🌐
W3Schools
w3schools.com › js › js_json_server.asp
JavaScript Loading JSON
JS Examples JS HTML DOM JS HTML Input JS HTML Objects JS HTML Events JS Browser JS Editor JS Exercises JS Quiz JS Website JS Syllabus JS Study Plan JS Interview Prep JS Certificate ... JSON is often stored in files or returned by calls to web servers.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › what-is-json-array
What is JSON Array? - GeeksforGeeks
July 23, 2025 - JSON array of Strings contains string elements only. For example, the array below has 6 string elements, "Ram", "Shyam", "Radhika", "Akshay", "Prashant" and "Varun", each element is separated with a comma (,).
🌐
ReqBin
reqbin.com › json › uzykkick › json-array-example
What is JSON Array?
June 11, 2022 - The JSON array of strings contains only string elements, where each element is separated by a comma (,). The following is an example of a JSON array storing string values:
🌐
RestfulAPI
restfulapi.net › home › json › json array: syntax, nested arrays and examples
JSON Array: Syntax, Nested Arrays and Examples
3 weeks ago - A for…of loop hands us the values in order, which is what we want almost every time. const user = JSON.parse('{"rights": ["admin", "editor", "contributor"]}'); for (const i in user.rights) console.log(i, typeof i); for (const right of user.rights) ...
Find elsewhere
🌐
Micro Focus
microfocus.com › documentation › silk-performer › 205 › en › silkperformer-205-webhelp-en › GUID-0847DE13-2A2F-44F2-A6E7-214CD703BF84.html
JSON Array Structure - Micro Focus
In contrast to regular arrays from the BDL, the elements of a JSON array can be of different data types. The following data types are allowed for JSON arrays: [ ] //Empty JSON array [ 0, 1, 2, 3, 4, 5] [ “StringValue”, 10, 20.13, true, null ] [ { “Name” : “Nested Object” }, [ 10, 20, true, 40, “Nested Array” ] ]
🌐
JSON Schema
json-schema.org › understanding-json-schema › reference › array
JSON Schema - array
Here, we'll reuse the example schema ... items in the tuple. ... { "type": "array", "prefixItems": [ { "type": "number" }, { "type": "string" }, { "enum": ["Street", "Avenue", "Boulevard"] }, { "enum": ["NW", "NE", "SW", "SE"] } ], "items": false}...
🌐
CodeUtility
blog.codeutility.io › programming › how-to-use-arrays-in-json-with-examples-in-code-5eeef2665f
How to use Arrays in JSON (With Examples in Code) | CodeUtility
September 26, 2025 - Parse JSON string back to array parsed_users = json.loads(json_string) print("Parsed users:", parsed_users)
🌐
Quora
quora.com › How-do-you-convert-a-JSON-object-into-a-String-Array
How to convert a JSON object into a String Array - Quora
What the docs don’t provide is a decent example of the “extra” arguments that can help format the text representation of a JS object. JSON.stringify can accept a 2nd and 3rd argument. The second is a “replacer”, which is a bit like masking/whitelisting values in the JSON object. Consider the complex object below, and notice the array ...
🌐
Cswr
cswr.github.io › JsonSchema › spec › arrays
Arrays - JSON Schema
Arrays are used to represent ordered sets of values, such as the following sequence of strings: ["Chilean", "Argentinean", "Peruvian", "Colombian"] In this section we specify array's main charasteristics and restrictions that may apply to them using a single JSON Schema document.
🌐
ReqBin
reqbin.com › json › nodejs › uzykkick › json-array-example
Node.js | What is JSON Array?
June 11, 2022 - The JSON array of strings contains only string elements, where each element is separated by a comma (,). The following is an example of a JSON array storing string values:
🌐
Medium
medium.com › @harshadawayal4949 › json-array-json-object-6ea512b1f66c
JSON Array & JSON Object | by Harshada Wayal | Medium
March 22, 2024 - Values in JSON array are indexed stating from 0. ... A JSON object is an unordered collection of key-value pairs enclosed within curly braces ‘{ }’. Each key in JSON object must be a string, and it must be unique within that object. The values associated with keys in a JSON object can be of any valid JSON data type - ... An example here is Student object.
🌐
Leapcell
leapcell.io › blog › understanding-json-arrays-a-practical-guide
Understanding JSON Arrays: A Practical Guide | Leapcell
July 25, 2025 - They provide a flexible way to represent and manipulate collections of data across various programming environments. Yes, JSON arrays can include strings, numbers, booleans, objects, arrays, and null. Use zero-based indexing, e.g., array[0] for the first element. No, JSON syntax does not permit trailing commas. Leapcell is the Next-Gen Serverless Platform for Web Hosting, Async Tasks, and Redis: ... Develop with Node.js, Python, Go, or Rust. ... Pay-as-you-go with no idle charges. Example: $25 supports 6.94M requests at a 60ms average response time.
🌐
Jsontech
jsontech.net › home › learn › json array example
JSON Array Example: How Arrays Work in JSON | JSONTech.net
March 20, 2025 - Explore JSON arrays through practical examples — from simple lists to complex nested structures. Learn the syntax rules and when to reach for arrays instead of objects. ... A JSON array is an ordered list of values enclosed in square brackets []. Values inside an array are separated by commas. Unlike objects, arrays don't have keys — each element is accessed by its position (index), starting from zero. Arrays can hold any valid JSON type: strings, numbers, booleans, null, objects, and even other arrays.
🌐
ReqBin
reqbin.com › json › python › uzykkick › json-array-example
Python | What is JSON Array?
The JSON array of strings contains only string elements, where each element is separated by a comma (,). The following is an example of a JSON array storing string values:
🌐
Codeblogmoney
codeblogmoney.com › json-example-with-data-types-including-json-array
JSON Example with Data Types Including JSON Array
July 3, 2018 - Valid JSON Data Types String Number Object Array Boolean Null 1. JSON String Example: 1 2 3 4 5 { "firstname": "Tom", "lastname": "Cruise", "occupation": "Actor" } This example shows information about a person, and you know Tom Cruise.
🌐
Losant Forums
forums.losant.com › help
[Solved] How to manipulate a "string array" in json payload - Help - Losant Forums
July 26, 2017 - Hey Guys, I have a question related to the “array”?! function. I want to extract to values of an array (but it actually is a string) - or I don’t know if this is the right word, it’s just a chain of values. The part of the array looks like this: … “data”:“[‘open’, ‘OK’, ...
🌐
Jsontotable
jsontotable.org › blog › json › json-array
JSON Arrays Explained: Complete Guide with Examples | JSON to Table Converter
JSON arrays are ordered collections of values enclosed in square brackets []. They can contain any valid JSON data type including strings, numbers, booleans, objects, or even other arrays.