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_arrays.asp
JSON Arrays
In JSON, array values must be of type string, number, object, array, boolean or null.
Discussions

How can I turn JSON String into a list of objects based on number of items. - Unity Engine - Unity Discussions
Hey there, I am receiving a JSON string from the backend of my webserver. I managed to create a class for User profile and mapped it with the exact fields as its JSON string. Unfortunately the Items JSON string has nested values. How can I create an object based on the number of items in my ... More on discussions.unity.com
🌐 discussions.unity.com
0
May 15, 2020
Pass list of strings to json
Hello, I have a variable called: email variable "prod_ops_email_recipients" { type = list(string) default = [ "email_address_1@com","email_address_2@com" ] } I used join function and format to have an array locals { user_email = [join(", ", [for s in var.prod_ops_email_recipients : format("%q", ... More on discuss.hashicorp.com
🌐 discuss.hashicorp.com
0
0
November 22, 2021
Constructing a json string from a list of objects
I’m working on a new module to call an ansible playbook. The playbook takes a rather complex payload of various user inputs of nested lists, optional parameters, etc. The idea is that the payload is constructed by the module so we can take advantage of the built-in validation. More on discuss.hashicorp.com
🌐 discuss.hashicorp.com
0
0
February 27, 2023
apex - JSON Array String into List - Salesforce Stack Exchange
Can anyone help how do I convert this JSON string into List of Map? More on salesforce.stackexchange.com
🌐 salesforce.stackexchange.com
May 6, 2022
🌐
FlutterFlow Community
community.flutterflow.io › ask-the-community › post › create-json-array-from-list-of-strings-1A4EOYJN1pEDzRa
Create JSON array from list of strings?
April 22, 2024 - Hi all curious, I'm trying to collect a list of emails from my user collection and send that list as a JSON array in an API request. Is it possible to create a JSON array in FF for this? Hardcoding values such as this works fine with a test.
🌐
Unity
discussions.unity.com › unity engine
How can I turn JSON String into a list of objects based on number of items. - Unity Engine - Unity Discussions
May 15, 2020 - Hey there, I am receiving a JSON string from the backend of my webserver. I managed to create a class for User profile and mapped it with the exact fields as its JSON string. Unfortunately the Items JSON string has neste…
🌐
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 - So on a whole, the ‘JSON array of strings’ represents an ordered list of values, and It can store multiple values. This is useful to store string, Boolean, number, or an object.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Baeldung
baeldung.com › home › java › java list › converting a java list to a json array
Converting a Java List to a Json Array | Baeldung
June 18, 2025 - Furthermore, web services and APIs often rely on JSON format to provide public data in a standardized manner. Its versatility makes it compatible with modern programming languages, allowing seamless integration across different platforms and technologies. In this scenario, let’s consider a Java list named “articles” that contains elements as follows: public List<String> list = Arrays.asList("Article 1", "Article 2", "Article 3"); public String expectedJsonArray = "[\"Article 1\",\"Article 2\",\"Article 3\"]";
🌐
HashiCorp Discuss
discuss.hashicorp.com › terraform
Pass list of strings to json - Terraform - HashiCorp Discuss
November 22, 2021 - Hello, I have a variable called: email variable "prod_ops_email_recipients" { type = list(string) default = [ "email_address_1@com","email_address_2@com" ] } I used join function and format to have an array locals { user_email = [join(", ", [for s in var.prod_ops_email_recipients : format("%q", s)])] } resource "sumologic_content" "test_email" { parent_id = "000000000157AD40" config = templatefile("${path.root}/template/test_email.json", { email = local.user_email.*.id...
Find elsewhere
🌐
HashiCorp Discuss
discuss.hashicorp.com › terraform
Constructing a json string from a list of objects - Terraform - HashiCorp Discuss
February 27, 2023 - I’m working on a new module to call an ansible playbook. The playbook takes a rather complex payload of various user inputs of nested lists, optional parameters, etc. The idea is that the payload is constructed by the module so we can take advantage of the built-in validation.
🌐
Stack Exchange
salesforce.stackexchange.com › questions › 375426 › json-array-string-into-list
apex - JSON Array String into List - Salesforce Stack Exchange
May 6, 2022 - String stringJSON = '[{"action":"ASSIGN","value":"Router"},{"action":"DISABLE","value":true},{"action":"HIDE","value":false}]'; List<Object> listOfAny = (List<Object>) JSON.deserializeUntyped(stringJSON); List<Map<String, Object>> listMap = new List<Map<String, Object>>(); for(Object obj : listOfAny) { Map<String, Object> mapObj = (Map<String, Object>) obj; listMap.add(mapObj); } System.debug(listMap); // Example: Get the two maps 'action' and 'value' from the list index 1 System.debug(listMap[1].get('action')); System.debug(listMap[1].get('value'));
🌐
UiPath Community
forum.uipath.com › learning hub › academy feedback
How do I create a JSON string from an Array? - Academy Feedback - UiPath Community Forum
Hello, So I see plenty of examples on how to take an JSON string the bot got from another service and deserialize it into an array for it to process. But I’m trying to go in the other direction. My bot has gathered various bits of information into an array and I want to encode that into a ...
Published   July 30, 2018
🌐
Mkyong
mkyong.com › home › java › how to parse json array with jackson
How to parse JSON Array with Jackson - Mkyong.com
April 23, 2024 - package com.mkyong.json.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.mkyong.json.model.Person; import java.util.List; public class JsonArrayToObjectExample { public static void main(String[] args) throws JsonProcessingException { String jsonArray = "[{\"name\":\"mkyong\", \"age\":42}, {\"name\":\"ah pig\", \"age\":20}]"; ObjectMapper mapper = new ObjectMapper(); // 1.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › JSON › stringify
JSON.stringify() - JavaScript - MDN Web Docs
The JSON.stringify() static method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
🌐
AskPython
askpython.com › home › convert a list to json string in python [easy step-by-step]
Convert a List to JSON String in Python [Easy Step-By-Step] - AskPython
May 30, 2023 - The dumps() function takes a Python list as its parameter, converts it into a JSON string, and then returns that JSON string.
🌐
JSON Schema
json-schema.org › understanding-json-schema › reference › array
JSON Schema - array
Arrays are used for ordered elements. In JSON, each element in an array may be of a different type. ... In Python, "array" is analogous to the list or tuple type, depending on usage.
🌐
Cloudera Community
community.cloudera.com › t5 › Support-Questions › How-to-transform-a-json-array-into-a-string-list-with-nifi › m-p › 181987
Solved: How to transform a json array into a string list w... - Cloudera Community - 181987
January 12, 2023 - So i can pass this list as a string parameter for a java main program which i've alreat set. (i only need the transofrmation, not the java program execution) Thank you ! ... I think you can do that with EvaluateJsonPath extracting String in an JSON array, followed by UpdateAttribute removes special characters such as double quotes and square brackets by Expression Language.