Hi there @Jakub Ziolkowski, Great question, but to help you out could you provide some more information? Like; What kind of Zap actions are you currently using? Are you using a Javascript code step, what is the code? What is your final goal here? Can you give an example to make it clear What have you tried so far? Objects in javascript can normally be retrieved with object.nestedobject. But like stated above we need to know your current information. Thank you! ~Bjorn Answer from ForYourIT on community.zapier.com
🌐
JSONata
docs.jsonata.org › simple
Simple Queries · JSONata
Here are some example expressions and their results when applied to the above JSON document: ... Path not found. 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 the index.
Date/Time Processing
There are two functions that return the 'current' date/time timestamp: · The timestamp is captured at the start of the expression evaluation, and that same timestamp value is returned for every occurrence of $now() and $millis() in the same expression for the duration of the evaluation
Functions and Expressions
Characters within the string literal ... as JSON strings. Strings can be combined using the concatenation operator &. This is an infix operator and will join the two strings returned by the expressions either side of it. This is the only operator that will attempt to typecast its operands to the expected (string) type. ... Concatenates the Street and City from the Address object with a comma ...
Result Structures
So far, we have discovered how to extract values from a JSON document, and how to manipulate the data using numeric, string and other operators. It is useful to be able to specify how this processed data is presented in the output. As previously observed, when a location path matches multiple values in the input document, these values are returned as an array. The values might be objects ...
String Functions
Applies the str string to the pattern regular expression and returns an array of objects, with each object containing information about each occurrence of a match withing str.
Discussions

How to loop through an array with JSON objects
const arr = [ {title: " some title", id: "some id"}, {title: " some title2", id: "some id2"} ] console.log( "For loop") for( let i = 0; i< arr.length; i++) { console.log(arr[i].id) } console.log( "Use of") for ( let item of arr) { console.log( item.id) } console.log( "Use forEach - recommended") arr.forEach( (item) => console.log( item.id)); console.log( "Use forEach plus destructuring - recommended") arr.forEach( ({id}) => console.log( id)); console.log( "Use map to transform array, then log array") const result = arr.map( ({id}) => id) ; console.log( result) Output: For loop some id some id2 Use of some id some id2 Use forEach - recommended some id some id2 Use forEach plus destructuring - recommended some id some id2 Use map to transform array, then log array [ 'some id', 'some id2' ] P.S. If you are using var to declare a variable, you probably shouldn't be. Use const and let where possible. More on reddit.com
🌐 r/learnjavascript
9
4
December 30, 2022
Use a JSON array with objects with javascript - Stack Overflow
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: More on stackoverflow.com
🌐 stackoverflow.com
JSON Array with multiple json objects and json arrays
hello, I made an API call and I got a json response. I deserialized the json response, so that I have a json object. Now I want to extract some information from the object, but I have not managed to do it. Here is my j… More on forum.uipath.com
🌐 forum.uipath.com
1
0
September 25, 2021
Encoding a 2d array in a JSON object
Based on this JSON: "points": { "thing": "whatever", "points": [[1, 2, 3], [4, 5, 6]] } This should work: struct Points : Codable { let thing : String? let points : [[Int]]? enum CodingKeys: String, CodingKey { case thing = "thing" case points = "points" } init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: CodingKeys.self) thing = try values.decodeIfPresent(String.self, forKey: .thing) points = try values.decodeIfPresent([[Int]].self, forKey: .points) } } But what I would recommend is that you turn your points array into it's own struct, to give your data a little more structure: struct Points : Codable { let timestamp : Int? let value : Double? enum CodingKeys: String, CodingKey { case timestamp = "timestamp" case value = "value" } init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: CodingKeys.self) timestamp = try values.decodeIfPresent(Int.self, forKey: .timestamp) value = try values.decodeIfPresent(Double.self, forKey: .value) } } struct Model : Codable { let thing : String? let points : [Points]? enum CodingKeys: String, CodingKey { case thing = "thing" case points = "points" } init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: CodingKeys.self) thing = try values.decodeIfPresent(String.self, forKey: .thing) points = try values.decodeIfPresent([Points].self, forKey: .points) } } This JSON representation would look like this instead: { "model": { "thing": "whatever", "points": [{ "timestamp": 1514813820, "value": 1337.7 }] } } } More on reddit.com
🌐 r/swift
7
8
January 30, 2018
🌐
TOOLSQA
toolsqa.com › rest-assured › what-is-json
What is JSON, JSON Object and JSON Array?
July 7, 2021 - An example here is the Person Object, discussed above. The Person object follows the rules mentioned for representing an Object · { "FirstName" : "Virender", "LastName" : "Singh", "Age" : 34, "Profession": "Engineer" } Arrays are similar to Arrays that you know from any other programming language. In JSON an Array is collection of Values separated by Comma.
🌐
ReqBin
reqbin.com › json › uzykkick › json-array-example
What is JSON Array?
June 11, 2022 - The following is an example of an array of JSON booleans: ... A JSON object is similar to a JavaScript object. We can also create a JSON array containing many objects, and then we can iterate over this array or use "[]" square brackets to get the desired object.
🌐
Quora
quora.com › How-do-you-push-data-into-a-JSON-array-JavaScript-jQuery-JSON-and-development
How to push data into a JSON array (JavaScript, jQuery, JSON, and development) - Quora
Answer (1 of 3): You can use the native JSON.parse function to convert the JSON to an object or array, make any changes to the array/object, then convert that array/object back into JSON with the native JSON.stringify function Example: [code]let myData = '[1,2]'; const parsed = JSON.parse(myDat...
🌐
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 ... with keys in a JSON object can be of any valid JSON data type - ... An example here is Student object....
Find elsewhere
🌐
Reddit
reddit.com › r/learnjavascript › how to loop through an array with json objects
r/learnjavascript on Reddit: How to loop through an array with JSON objects
December 30, 2022 -

Hi all,

Im really struggling with this problem today. So basically, I have an array in the format

arr = [{title: " some title", id: "some id"}, {title: " some title2", id: "some id2"}] and all im trying to do is loop through each item in the array and get the value of the ids.

Here is what ive tried:

for( var i = 0; i< arr.length; i++){

console.log(arr[i].id)

}

It keeps showing up as undefined, please can anyone assist me? I would like the result to be "some id"

🌐
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.
🌐
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.
🌐
W3Schools
w3schools.com › js › js_json.asp
W3Schools.com
JSON makes it possible to store JavaScript objects as text. Text that defines an employees object with an array of 3 employee objects:
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › what-is-json-array
What is JSON Array? - GeeksforGeeks
July 23, 2025 - Example: Here we assign a JSON Array of Booleans to the key boolean in jsonBooleanArray object.
🌐
JSON
json.org
JSON
An object begins with {left brace and ends with }right brace. Each name is followed by :colon and the name/value pairs are separated by ,comma. An array is an ordered collection of values. An array begins with [left bracket and ends with ]right bracket.
🌐
UiPath Community
forum.uipath.com › help › studio
JSON Array with multiple json objects and json arrays - Studio - UiPath Community Forum
September 25, 2021 - hello, I made an API call and I got a json response. I deserialized the json response, so that I have a json object. Now I want to extract some information from the object, but I have not managed to do it. Here is my json response: { “results”: [ { “group”: { “mediaType”: “chat”, “queueId”: “7a982920-3a-4083-8315-db0f5fec6c44” }, “data”: [ { “interval”: “2021-08-16T00:00:00.000Z/2021-08-22T00:00:00.000Z”, “metrics”: [ { “metric”: “tAcw”, “stats”: { “max”: 800000, “min”: 6000, ...
🌐
JSON Schema
json-schema.org › understanding-json-schema › reference › array
JSON Schema - array
Tuple validation is useful when the array is a collection of items where each has a different schema and the ordinal index of each item is meaningful. For example, you may represent a street address such as 1600 Pennsylvania Avenue NW as a 4-tuple of the form:
🌐
JAXB
javaee.github.io › tutorial › jsonp001.html
Introduction to JSON
Objects are enclosed in braces ({}), their name-value pairs are separated by a comma (,), and the name and value in a pair are separated by a colon (:). Names in an object are strings, whereas values may be of any of the seven value types, including another object or an array. Arrays are enclosed in brackets ([]), and their values are separated by a comma (,). Each value in an array may be of a different type, including another array or an object.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Core › Scripting › JSON
Working with JSON - Learn web development | MDN
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.