Here’s a little background on the text variables I set in the first module of our sample scenario. You may like to see the different types of structures to study them to understand their differences. Make expressions can be copied and pasted into Make input boxes in most places.
Variable name: Simple array
Make expression: {{add(emptyarray; "apple"; "banana"; "cherry"; 42; true; null; now)}}
Bundle output
{
"Simple array": [
"apple",
"banana",
"cherry",
42,
true,
null,
"2024-05-23T20:07:14.697Z"
]
}
Variable name: another simple array
Make expression: {{add(emptyarray; "pear"; "mango"; 123; false)}}
Bundle output
{
"another simple array": [
"pear",
"mango",
123,
false
]
}
Variable name: JSON simple collection
Make expression: { "name": "Alex C", "age": 2, "city": "Houston", "date_entered": "{{now}}" }
Bundle output
{
"name": "Alex C",
"age": 2,
"city": "Houston",
"date_entered": "2024-05-23T20:07:14.698Z"
}
Variable name: JSON array of simple collections
Make expression: [ { "name": "Alex C", "age": 53, "city": "Toronto" }, { "name": "Eric S", "age": 43, "city": "Hoboken" } ]
Bundle output
[
{
"name": "Alex C",
"age": 53,
"city": "Toronto"
},
{
"name": "Eric S",
"age": 43,
"city": "Hoboken"
}
]
Variable name: JSON collection complex values
Make expression: { "name": "Aleix Melon", "id": "E00245", "role": ["Dev", "DBA"], "age": 23, "doj": "11-12-2019", "married": {{false}}, "address": { "street": "32, Laham St.", "city": "Innsbruck", "country": "Austria" }, "referred-by": "E0012" }
Bundle output
{
"name": "Aleix Melon",
"id": "E00245",
"role": [
"Dev",
"DBA"
],
"age": 23,
"doj": "11-12-2019",
"married": false,
"address": {
"street": "32, Laham St.",
"city": "Innsbruck",
"country": "Austria"
},
"referred-by": "E0012"
}
Variable name: JSON array of collections complex values
Make expression: [ { "name": "Aleix Melon", "id": "E00245", "role": ["Dev", "DBA"], "age": 23, "doj": "11-12-2019", "married": {{false}}, "address": { "street": "32, Laham St.", "city": "Innsbruck", "country": "Austria" }, "referred-by": "E0012" }, { "name": "Bob Washington", "id": "E01245", "role": ["HR"], "age": 43, "doj": "10-06-2010", "married": {{true}}, "address": { "street": "45, Abraham Lane.", "city": "Washington", "country": "USA" }, "referred-by": "" } ]
Bundle output
[
{
"name": "Aleix Melon",
"id": "E00245",
"role": [
"Dev",
"DBA"
],
"age": 23,
"doj": "11-12-2019",
"married": false,
"address": {
"street": "32, Laham St.",
"city": "Innsbruck",
"country": "Austria"
},
"referred-by": "E0012"
},
{
"name": "Bob Washington",
"id": "E01245",
"role": [
"HR"
],
"age": 43,
"doj": "10-06-2010",
"married": true,
"address": {
"street": "45, Abraham Lane.",
"city": "Washington",
"country": "USA"
},
"referred-by": ""
}
]
Variable name: JSON array of collections of really complex values
Make expression: [ { "item_name": "Email campaign", "item_sku_attachment": "", "item_options": [ { "Organization name": "Client A" }, { "Writing services": "Writing service A" }, { "Design services": "Design service B" }, { "Comments": "test comment" } ], "item_image": "image.png", "unit_price": 0, "quantity": 5, "weight": 0, "created_at": "2024-05-11 13:37:46", "product_price": 195, "categories": [ { "id": "cat_6633e1936571b618828100", "category_name": "Send", "category_slug": "send", "status": "1" } ] }, { "item_name": "Ad campaign", "item_sku_attachment": "", "item_options": [ { "Organization name": "Client B" }, { "Writing services": "Writing service B" }, { "Design services": "Design service C" }, { "Comments": "test comment 2" } ], "item_image": "image.png", "unit_price": 0, "quantity": 5, "weight": 0, "created_at": "2023-05-11 13:37:46", "product_price": 1295, "categories": [ { "id": "cat_6633e1936571b618828100", "category_name": "Send", "category_slug": "send", "status": "1" } ] } ]
Bundle output
[
{
"item_name": "Email campaign",
"item_sku_attachment": "",
"item_options": [
{
"Organization name": "Client A"
},
{
"Writing services": "Writing service A"
},
{
"Design services": "Design service B"
},
{
"Comments": "test comment"
}
],
"item_image": "image.png",
"unit_price": 0,
"quantity": 5,
"weight": 0,
"created_at": "2024-05-11 13:37:46",
"product_price": 195,
"categories": [
{
"id": "cat_6633e1936571b618828100",
"category_name": "Send",
"category_slug": "send",
"status": "1"
}
]
},
{
"item_name": "Ad campaign",
"item_sku_attachment": "",
"item_options": [
{
"Organization name": "Client B"
},
{
"Writing services": "Writing service B"
},
{
"Design services": "Design service C"
},
{
"Comments": "test comment 2"
}
],
"item_image": "image.png",
"unit_price": 0,
"quantity": 5,
"weight": 0,
"created_at": "2023-05-11 13:37:46",
"product_price": 1295,
"categories": [
{
"id": "cat_6633e1936571b618828100",
"category_name": "Send",
"category_slug": "send",
"status": "1"
}
]
}
]
Variable name: JSON Library Systems
Make expression:
[{ "library": { "libraryname": "Central Library", "location": "123 Main Street", "catalog": { "sections": [ { "name": "Fiction", "books": [ { "title": "To Kill a Mockingbird", "author": "Harper Lee", "genre": "Classic", "copies": 5 }, { "title": "1984", "author": "George Orwell", "genre": "Dystopian", "copies": 3 } ] }, { "name": "Non-Fiction", "books": [ { "title": "Sapiens: A Brief History of Humankind", "author": "Yuval Noah Harari", "genre": "History", "copies": 7 }, { "title": "The Power of Habit", "author": "Charles Duhigg", "genre": "Psychology", "copies": 4 } ] } ] } } }, { "library": { "libraryname": "Downtown Library", "location": "456 Elm Street", "catalog": { "sections": [ { "name": "Science Fiction", "books": [ { "title": "Dune", "author": "Frank Herbert", "genre": "Science Fiction", "copies": 6 }, { "title": "Neuromancer", "author": "William Gibson", "genre": "Cyberpunk", "copies": 4 } ] }, { "name": "Biography", "books": [ { "title": "Steve Jobs", "author": "Walter Isaacson", "genre": "Biography", "copies": 3 }, { "title": "The Diary of a Young Girl", "author": "Anne Frank", "genre": "Autobiography", "copies": 5 } ] } ] } } }, { "library": { "libraryname": "Westside Library", "location": "789 Oak Avenue", "catalog": { "sections": [ { "name": "Mystery", "books": [ { "title": "The Girl with the Dragon Tattoo", "author": "Stieg Larsson", "genre": "Mystery", "copies": 8 }, { "title": "Gone Girl", "author": "Gillian Flynn", "genre": "Thriller", "copies": 6 } ] }, { "name": "History", "books": [ { "title": "The Guns of August", "author": "Barbara W. Tuchman", "genre": "History", "copies": 4 }, { "title": "1491", "author": "Charles C. Mann", "genre": "Archaeology", "copies": 7 } ] } ] } } }, { "library": { "libraryname": "Eastside Library", "location": "1010 Pine Boulevard", "catalog": { "sections": [ { "name": "Fantasy", "books": [ { "title": "Harry Potter and the Philosopher's Stone", "author": "J.K. Rowling", "genre": "Fantasy", "copies": 10 }, { "title": "The Hobbit", "author": "J.R.R. Tolkien", "genre": "Adventure", "copies": 8 } ] }, { "name": "Self-Help", "books": [ { "title": "The Subtle Art of Not Giving a F*ck", "author": "Mark Manson", "genre": "Self-Help", "copies": 5 }, { "title": "Atomic Habits", "author": "James Clear", "genre": "Personal Development", "copies": 6 } ] } ] } } }, { "library": { "libraryname": "Southside Library", "location": "1212 Maple Street", "catalog": { "sections": [ { "name": "Fantasy", "books": [ { "title": "The Name of the Wind", "author": "Patrick Rothfuss", "genre": "Fantasy", "copies": 7 }, { "title": "Mistborn: The Final Empire", "author": "Brandon Sanderson", "genre": "Fantasy", "copies": 6 } ] }, { "name": "Science Fiction", "books": [ { "title": "Do Androids Dream of Electric Sheep?", "author": "Philipp K. Dick", "genre": "Science Fiction", "copies": 1 } ] }, { "name": "Self-Help", "books": [ { "title": "The 7 Habits of Highly Effective People", "author": "Stephen R. Covey", "genre": "Self-Help", "copies": 8 }, { "title": "How to Win Friends and Influence People", "author": "Dale Carnegie", "genre": "Self-Help", "copies": 9 } ] } ] } } } ]
Bundle output
[
{
"library": {
"libraryname": "Central Library",
"location": "123 Main Street",
"catalog": {
"sections": [
{
"name": "Fiction",
"books": [
{
"title": "To Kill a Mockingbird",
"author": "Harper Lee",
"genre": "Classic",
"copies": 5
},
{
"title": "1984",
"author": "George Orwell",
"genre": "Dystopian",
"copies": 3
}
]
},
{
"name": "Non-Fiction",
"books": [
{
"title": "Sapiens: A Brief History of Humankind",
"author": "Yuval Noah Harari",
"genre": "History",
"copies": 7
},
{
"title": "The Power of Habit",
"author": "Charles Duhigg",
"genre": "Psychology",
"copies": 4
}
]
}
]
}
}
},
{
"library": {
"libraryname": "Downtown Library",
"location": "456 Elm Street",
"catalog": {
"sections": [
{
"name": "Science Fiction",
"books": [
{
"title": "Dune",
"author": "Frank Herbert",
"genre": "Science Fiction",
"copies": 6
},
{
"title": "Neuromancer",
"author": "William Gibson",
"genre": "Cyberpunk",
"copies": 4
}
]
},
{
"name": "Biography",
"books": [
{
"title": "Steve Jobs",
"author": "Walter Isaacson",
"genre": "Biography",
"copies": 3
},
{
"title": "The Diary of a Young Girl",
"author": "Anne Frank",
"genre": "Autobiography",
"copies": 5
}
]
}
]
}
}
},
{
"library": {
"libraryname": "Westside Library",
"location": "789 Oak Avenue",
"catalog": {
"sections": [
{
"name": "Mystery",
"books": [
{
"title": "The Girl with the Dragon Tattoo",
"author": "Stieg Larsson",
"genre": "Mystery",
"copies": 8
},
{
"title": "Gone Girl",
"author": "Gillian Flynn",
"genre": "Thriller",
"copies": 6
}
]
},
{
"name": "History",
"books": [
{
"title": "The Guns of August",
"author": "Barbara W. Tuchman",
"genre": "History",
"copies": 4
},
{
"title": "1491",
"author": "Charles C. Mann",
"genre": "Archaeology",
"copies": 7
}
]
}
]
}
}
},
{
"library": {
"libraryname": "Eastside Library",
"location": "1010 Pine Boulevard",
"catalog": {
"sections": [
{
"name": "Fantasy",
"books": [
{
"title": "Harry Potter and the Philosopher's Stone",
"author": "J.K. Rowling",
"genre": "Fantasy",
"copies": 10
},
{
"title": "The Hobbit",
"author": "J.R.R. Tolkien",
"genre": "Adventure",
"copies": 8
}
]
},
{
"name": "Self-Help",
"books": [
{
"title": "The Subtle Art of Not Giving a F*ck",
"author": "Mark Manson",
"genre": "Self-Help",
"copies": 5
},
{
"title": "Atomic Habits",
"author": "James Clear",
"genre": "Personal Development",
"copies": 6
}
]
}
]
}
}
},
{
"library": {
"libraryname": "Southside Library",
"location": "1212 Maple Street",
"catalog": {
"sections": [
{
"name": "Fantasy",
"books": [
{
"title": "The Name of the Wind",
"author": "Patrick Rothfuss",
"genre": "Fantasy",
"copies": 7
},
{
"title": "Mistborn: The Final Empire",
"author": "Brandon Sanderson",
"genre": "Fantasy",
"copies": 6
}
]
},
{
"name": "Science Fiction",
"books": [
{
"title": "Do Androids Dream of Electric Sheep?",
"author": "Philipp K. Dick",
"genre": "Science Fiction",
"copies": 1
}
]
},
{
"name": "Self-Help",
"books": [
{
"title": "The 7 Habits of Highly Effective People",
"author": "Stephen R. Covey",
"genre": "Self-Help",
"copies": 8
},
{
"title": "How to Win Friends and Influence People",
"author": "Dale Carnegie",
"genre": "Self-Help",
"copies": 9
}
]
}
]
}
}
}
]
–
Alex Sirota
Director of NewPath Consulting - we are
Make Heroes! ![]()
Check out my series of videos and scenario walkthroughs for Make Newbies ![]()