Glossary

Minted document

A minted document is a document created when you merge your template with your data.

Path

A path is a string used to access a property deep within the data being merged with your template. For accessing nested properties within an object, use a . to access nested properties and [] to access a specific item in an array.
For example, if we wanted to get the name of the first item in the list of items in the data below, we would use the following path items[0].name. We use [0] to access the first item because lists are zero-based, then we use .name to access the name property value in the first item.
1
// Data
2
{
3
"items":[
4
{ "name":"Item #1", "qty":10, "price": 50 },
5
{ "name":"Item #2", "qty":6, "price": 100 }
6
],
7
"total_amount": 1100,
8
"customer":{
9
"address":{
10
"street":"123 Main St.",
11
"city":"New York",
12
"state":"New York"
13
}
14
}
15
}
16
17
//Path Examples
18
"items[0].price" // 50
19
"customer.address.street" // "123 Main St."
Copied!
In the first example, we're giving the path to the price property of the first item in the items array. In the second example, we're giving the path to the more deeply nested customer street address.
Last modified 29d ago
Copy link