You don't need to use arrays.

JSON values can be arrays, objects, or primitives (numbers or strings).

You can write JSON like this:

{ 
    "stuff": {
        "onetype": [
            {"id":1,"name":"John Doe"},
            {"id":2,"name":"Don Joeh"}
        ],
        "othertype": {"id":2,"company":"ACME"}
    }, 
    "otherstuff": {
        "thing": [[1,42],[2,2]]
     }
}

You can use it like this:

obj.stuff.onetype[0].id
obj.stuff.othertype.id
obj.otherstuff.thing[0][1]  //thing is a nested array or a 2-by-2 matrix.
                            //I'm not sure whether you intended to do that.
Answer from SLaks on Stack Overflow
🌐
Phrase
support.phrase.com › hc › en-us › articles › 6111330881692--JSON-Nested-Strings
.JSON - Nested (Strings) – Phrase
Nested JSON is a .JSON file with a large portion of values being other .JSON objects. Compared with Simple JSON, Nested JSON provides higher clarity by decoupling objects into different layers, making it easier to maintain. Keys are stored by separating levels with a dot ..
Discussions

How deeply can a JSON object be nested?
I was watching a video on a website that said json objects can be nested deeply. How far can a JSON object be nested before it will create an error? More on softwareengineering.stackexchange.com
🌐 softwareengineering.stackexchange.com
April 15, 2015
Nested json read as [object Object]
Describe the problem/error/question I build a workflow which execute an http api call and return as a response an array of objects, than i want to send this array of objects to a discord message but the message is published with [object Object]. This is the mark down i created ## Alert Details ... More on community.n8n.io
🌐 community.n8n.io
0
0
March 7, 2024
JSON Nested Objects | OutSystems
I'm working with a web service which requires nested JSON objects sent in a request. However, I can't seem to figure out how to build a structure that will accommodate this requirement in OutSystems. It seems that OutSystems will only nest attributes, but not an object within an object · Under ... More on outsystems.com
🌐 outsystems.com
March 13, 2018
Is it possible to access nested objects, in the way I have my json formatted?
Right now, on my json server, all I can access is the results object. But how can I specifically go into the values object, and pick one of its objects. Like how would I access "123" and its properties? More on github.com
🌐 github.com
9
June 28, 2018
🌐
Medium
medium.com › @ferzia_firdousi › multi-level-nested-json-82d29dd9528
Deeply Nested JSON, json.normalize, pd.read_json | Medium
May 3, 2023 - Reading the JSON into a pandas object shows that _df[‘students’] is a multi-level nested key-value pair enclosed in a list, whereas _df[‘school_name’] and _df[‘class’] are single key-value pairs (multi-level key-value pair is only one format: list).
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-access-and-process-nested-objects-arrays-or-json
How to Access and Process Nested Objects, Arrays, or JSON? - GeeksforGeeks
Recursive functions allow you to access and process deeply nested objects or arrays by repeatedly calling the function on nested items. This is helpful when we don't know the exact length of the object. ... const o1 = { o2: { name: "Sourav", contacts: { emails: ["sourav@example.com", "sourav.work@example.com"], phone: "123-456-7890" } } }; function printNested(obj) { if (typeof obj === 'object') { for (let key in obj) { printNested(obj[key]); } } else { console.log(obj); } } printNested(o1); ... For JSON data, you can use JSON.parse() to convert JSON strings into JavaScript objects and JSON.stringify() to convert JavaScript objects into JSON strings.
Published   July 23, 2025
🌐
Qlik Community
community.qlik.com › t5 › Member-Articles › Parsing-Nested-JSON-Objects › ta-p › 2535112
Parsing: Nested JSON Objects - Qlik Community - 2535112
November 4, 2025 - The image depicts what is called a nested JSON structure containing a variety of both entities and field and value pairs. If I asked you what the sheriff's name was, you would instinctively say "Marshal Ada Lovelace." Unlike the previous post Parsing: Flat JSON - Field Value Pairs this structure ...
Find elsewhere
🌐
Medium
medium.com › @mayurkoshti12 › how-to-work-with-nested-json-data-in-python-bbf51f5231c7
How to Work with Nested JSON Data in Python | Medium
October 3, 2024 - Loading JSON: We start by loading the JSON response into a Python dictionary using json.loads(). Navigating the Structure: Using the get() method, we safely navigate through the nested structure to access the list of users. Extracting Data: For each user, we extract the name, city from the nested address object, and the notifications preference.
🌐
Lokalise
docs.lokalise.com › all collections › keys and files › supported file formats › json nested (.json)
JSON nested (.json) | Lokalise Help Center: Documentation and helpful resources
Unlike flat JSON files, nested JSON files can contain objects within objects, allowing for a deeper hierarchical organization of translation strings.
🌐
n8n
community.n8n.io › questions
Nested json read as [object Object] - Questions - n8n Community
March 7, 2024 - Describe the problem/error/question I build a workflow which execute an http api call and return as a response an array of objects, than i want to send this array of objects to a discord message but the message is published with [object Object]. This is the mark down i created ## Alert Details - **Campaign items**: {{$json}} - **Time of Occurrence**: {{ new Date() }} this is the json response i am get [ { "items": [ { ...data }, { ...data } ],...
🌐
Workiva
support.workiva.com › hc › en-us › articles › 19581207597460-CLP-JSON-Array-of-Nested-Objects
CLP - JSON Array of Nested Objects – Support Center
July 10, 2024 - Enter variety for the Column Name and .name for the JSONPath parameters. Select Pipe for the Delimiter parameter. ... As noted, the dataset has an array (i.e., multiple items) of nested objects. To process each of the varieties individually, row numbers must be added to the dataset.
🌐
CodeSignal
codesignal.com › learn › courses › parsing-json-with-csharp › lessons › parsing-json-arrays-and-nested-structures
Parsing JSON Arrays and Nested Structures
This JSON array consists of two objects representing individuals, each with a name and age attribute. Understanding this structure is key as we parse more complex nested arrays in subsequent sections.
🌐
nvie.com
nvie.com › posts › modifying-deeply-nested-structures
Modifying Deeply-Nested Structures » nvie.com
Return the same JSON document, but with the points list sorted by stop time in descending order. { "timestamp": 1412282459, "res": [ { "group": "1", "catlist": [ { "cat": "1", "start": "none", "stop": "none", "points": [ {"point": "1", "start": "13.00", "stop": "13.35"}, {"point": "2", "start": "11.00", "stop": "14.35"} ] } ] } ] } Note: It's kept short for brevity: the actual document contained many more items in each of the nested lists (so multiple groups, categories, and points), but this snippet covers the overall structure.
🌐
Json-schema
tour.json-schema.org › content › 01-Getting-Started › 02-Nesting-Objects
Nesting Objects: Getting Started | A Tour of JSON Schema
Let's divide the name property ... 5 "middleName": "Smith" 6 } 7 "age": 25, 8} In JSON Schema, A subschema refers to a schema that is nested within another schema....
🌐
OutSystems
outsystems.com › forums › discussion › 34649 › json-nested-objects
JSON Nested Objects | OutSystems
March 13, 2018 - I'm working with a web service which requires nested JSON objects sent in a request. However, I can't seem to figure out how to build a structure that will accommodate this requirement in OutSystems. It seems that OutSystems will only nest attributes, but not an object within an object · Under ...
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-parse-nested-json-in-python
How to Parse Nested JSON in Python - GeeksforGeeks
July 23, 2025 - Nested JSON refers to a JSON object that contains another JSON object (or an array of objects) inside it.
🌐
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 - Here, contact is a nested object, and address is nested within contact. ... Both the JavaScript dot notation and bracket notation will get a property value from the userData JSON :
🌐
SemanticDiff
semanticdiff.com › online-diff › json
SemanticDiff - Online JSON Diff
The tool compares JSON objects and arrays by first parsing them into a data structure that is independent of their textual representation.
🌐
GitHub
github.com › typicode › json-server › issues › 814
Is it possible to access nested objects, in the way I have my json formatted? · Issue #814 · typicode/json-server
June 28, 2018 - { "results": { "values": { "123": { "name": "John" "age": 40 }, "456": { "name": "Bob" "age": 20 }, "789": { "name": "Anna" "age": 18 } } } } Right now, on my json server, all I can access is the results object. But how can I specificall...
Author   jp-son
🌐
Elastic
discuss.elastic.co › elastic stack › logstash
Parse JSON array with nested objects - Logstash - Discuss the Elastic Stack
June 21, 2022 - Hi there! I am receiving an array of nested JSON elements and I would like to build a logic capable of transforming the following input { "devices": [ { "device": { "device_name": "printer_1", "other_field1": "abc", "other_field2": "def" }, "category": { "category_name": "printers", "other_field3": "ghi", "other_field4": "jkl" }, "device_id": "1234567890" }, { "device": { "device_name": "pr...