This isn't a single JSON object. You have an array of JSON objects. You need to loop over array first and then access each object. Maybe the following kickoff example is helpful:

var arrayOfObjects = [{
  "id": 28,
  "Title": "Sweden"
}, {
  "id": 56,
  "Title": "USA"
}, {
  "id": 89,
  "Title": "England"
}];

for (var i = 0; i < arrayOfObjects.length; i++) {
  var object = arrayOfObjects[i];
  for (var property in object) {
    alert('item ' + i + ': ' + property + '=' + object[property]);
  }
  // If property names are known beforehand, you can also just do e.g.
  // alert(object.id + ',' + object.Title);
}

If the array of JSON objects is actually passed in as a plain vanilla string, then you would indeed need eval() here.

var string = '[{"id":28,"Title":"Sweden"}, {"id":56,"Title":"USA"}, {"id":89,"Title":"England"}]';
var arrayOfObjects = eval(string);
// ...

To learn more about JSON, check MDN web docs: Working with JSON .

Answer from BalusC on Stack Overflow
🌐
Diff Checker
diffchecker.pro › blog › jsonobject-list
JSON List Guide: Arrays & Lists of JSON Objects (2026)
April 22, 2026 - The specification (RFC 8259) defines exactly six value types: string, number, boolean, null, object, and array. An array — what most developers call a json list — is an ordered sequence of zero or more values wrapped in square brackets.
Discussions

javascript - Loop through JSON object List - Stack Overflow
I am returning a List from a webservice as a List of JSON objects. I am trying to use a for loop to iterate through the list and grab the values out of the properties. This is a sample of the More on stackoverflow.com
🌐 stackoverflow.com
Get a list of data from a JSON array | OutSystems
I need your help... I am trying to get, through an REST api, an array of JSON object, such as: · In such a way I stored a structure as follows: More on outsystems.com
🌐 outsystems.com
July 27, 2020
arrays - List Objects in JSON - Stack Overflow
Which one is the correct JSON syntax for List of Objects ? More on stackoverflow.com
🌐 stackoverflow.com
api design - Representing a large list of complex objects in JSON - Software Engineering Stack Exchange
I am currently developing an API that returns JSON structures. One of the domain objects returned is a time series, which is a potentially large list (many thousands of elements) of complex objects... More on softwareengineering.stackexchange.com
🌐 softwareengineering.stackexchange.com
People also ask

What is a JSON list?
A JSON list is the informal term for a JSON array — an ordered, zero-indexed sequence of values wrapped in square brackets and separated by commas. Elements can be any valid JSON value (string, number, boolean, null, object, or another array) and the order is preserved by the spec. The phrase 'JSON list' is popular because Python's json module deserializes arrays into a native list, so developers use the two names interchangeably.
🌐
diffchecker.pro
diffchecker.pro › blog › jsonobject-list
JSON List Guide: Arrays & Lists of JSON Objects (2026)
What is the difference between a JSON list and a JSON array?
There is no technical difference — they refer to the same structure. The JSON specification (RFC 8259 / ECMA-404) only defines 'array'; 'list' is a colloquial name developers use, especially those coming from Python or functional languages. On the wire both are identical: a comma-separated sequence of values inside square brackets. Some style guides prefer 'JSON array' in documentation because it matches the spec, but 'JSON list' is equally understood.
🌐
diffchecker.pro
diffchecker.pro › blog › jsonobject-list
JSON List Guide: Arrays & Lists of JSON Objects (2026)
How do I compare two lists of JSON objects?
For small arrays, sort both lists by a stable key, pretty-print with indentation, and run a line-based diff. For larger or more complex payloads, use a visual JSON diff that highlights added, removed, and modified elements — the Diff Checker browser extension does this locally and privately, with no data upload. For a full walkthrough with screenshots, see our guide on comparing JSON objects online at https://diffchecker.pro/blog/compare-2-json-objects-online/.
🌐
diffchecker.pro
diffchecker.pro › blog › jsonobject-list
JSON List Guide: Arrays & Lists of JSON Objects (2026)
🌐
W3Schools
w3schools.com › js › js_json_server.asp
<h1>JavaScript Loading JSON</h1>
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. JavaScript can load JSON and convert it ...
🌐
W3Schools
w3schools.com › js › js_json_objects.asp
JavaScript JSON Values
These JavaScript values cannot be represented in JSON: These values must be converted before they can be stored as JSON. Date objects are not allowed in JSON.
🌐
Delft Stack
delftstack.com › home › howto › javascript › javascript json array of objects
How to Use Array of JSON Objects in JavaScript | Delft Stack
February 2, 2024 - In the above code, the months variable holds the array of JSON objects assigned explicitly, whereas the monthsArray is an array of JSON objects created by assigning values inside a for loop. We use the .push() array function to add the generated javascript object to the end of the monthsArray.
Find elsewhere
🌐
RestfulAPI
restfulapi.net › home › json › json array
Multi-dimensional Array in JSON - REST API Tutorial
November 4, 2023 - JSON array are ordered list of values. JSON arrays can be of multiple data types. JSON array can store string, number, boolean, object or other array inside JSON array. In JSON array, values must be separated by comma.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Core › Scripting › JSON
Working with JSON - Learn web development | MDN
1 week ago - JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications (e.g., sending some data from the server to the client, so it can be displayed on a web page, or vice versa). You'll come across it quite often, so in this article, we give you all you need to work with JSON using JavaScript, including parsing JSON so you can access data within it, and creating JSON.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-json-objects
JavaScript JSON Objects - GeeksforGeeks
July 23, 2025 - Let's explore how JSON works and why it's so useful for exchanging information. ... The object values can be accessed by using the dot (".") notation. We can also access objects by using bracket([]) notation.
🌐
Microverse
microverse.org › home › blog › how to loop through the array of json objects in javascript
How to Loop Through the Array of JSON Objects in JavaScript
September 29, 2022 - This tutorial will guide you on how to loop the array of JSON objects in JavaScript. We’ll explain the types of loops and how to use them.
🌐
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 - Representing lists of similar items: A list of products, a collection of user records, a series of log entries. Maintaining order: JSON arrays are ordered, so the sequence of objects is preserved.
🌐
Adobe
opensource.adobe.com › Spry › samples › data_region › JSONDataSetSample.html
JSON Data Set Sample
Imagine you want to show a list of the different types of items, and under each item, you also want to list the different types of batters and toppings available. Doing that with the data set used in Example 10 would require some JavaScript logic embedded in spry attribute conditionals to control when things showed up. A simpler approach would be to use NestedJSONDataSets. In this example we use the same JSON data used in Example 10, but we will use 2 nested JSON data sets to track the "batter" and "topping" data.
🌐
Stack Overflow
stackoverflow.com › questions › 37219761 › list-objects-in-json
arrays - List Objects in JSON - Stack Overflow
Which one is the correct JSON syntax for List of Objects ? I have seen different implementation at different sources. { "Employees": [ { "name": "foo", "age": 23 ...
🌐
W3Resource
w3resource.com › JSON › snippets › understanding-json-lists-with-examples-and-code.php
JSON Lists with Examples
Each dictionary in the list is accessed, and its keys (id, name, age) are used to retrieve values. ... The details of each person (ID, name, age) are displayed. ... data[0]['age'] = 26 # Update Sara's age data.append({"id": 4, "name": "Diana", "age": 28}) # Add a new person · Dumping JSON: Convert Python objects back to a JSON string:
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-convert-json-string-to-array-of-json-objects-using-javascript
Convert JSON String to Array of JSON Objects in JavaScript - GeeksforGeeks
August 5, 2025 - Using the JSON.parse() method, a JSON string can be easily converted into an array of JSON objects in JavaScript.
🌐
JSONata
docs.jsonata.org › simple
Simple Queries · JSONata
Returns nothing (i.e. Javascript undefined) ... JSON arrays are used when an ordered collection of values is required. Each value in the array is associated with an index (position) rather than a name, so in order to address individual values in an array, extra syntax is required to specify ...
Top answer
1 of 7
3

Lean towards option 1, as it's a more expected format.

Option 1 works with JSON as it's designed to be used and therefore benefits from what JSON offers (a degree of human readability, which is good for debugging, and straightforward parsing, which is good for limiting entire categories of bugs to begin with).

Option 2 begrudgingly adopts JSON and subverts many of the benefits. If you don't want human readability, use protobuf or something similar... AIWalker's "CSV"-like approach isn't terrible either. It is marginally better (readable) than splitting objects apart and recombining them. But, this is still not as good (readable) as using JSON "as designed".

Also bear in mind, your API responses are also likely going to be gzipped. Most of the repetition in option 1 will be quickly and transparently condensed over the wire.

As an aside, if you're moving a lot of data, also consider JSONL or paginated results. Pagination can be especially helpful for web clients, as it places natural pauses in the processing, providing a degree of "organic" protection against UI lockups.

2 of 7
3

A list of objects is easier to work with. You can use append, map, filter... All the nice things JS Arrays have which manual indexing doesn't. And there's no way to get out of sync, so that's an entire class of bugs gone.

If you're worried about efficiency:

  • Measure (premature optimization is the root of all evil)
  • Consider the list of lists trick AIWalker proposed
  • Consider an outright binary format
  • Make sure gzip is enabled
  • Measure (it's worth saying twice)
🌐
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
... const o1 = { o2: { name: "Sourav", ... 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 ...
Published: July 23, 2025