Work with Jinja lists
Introduction
Standard list
[ "apples", "oranges", "potatoes" ]More complicated example
"users": [
{
"username": "lskywalker",
"first_name": "Luke",
"last_name": "Skywalker",
"occupation": "Jedi"
},
{
"username": "hsolo",
"first_name": "Han",
"last_name": "Solo",
"occupation": "Smuggler"
}
]Work with lists
Count of users
Get the first name of each user
Select items of a list based on their attributes
Create new objects with list notation
Append to a list
Other useful tactics
Compare lists
Stacked lists
Last updated
Was this helpful?

