skip to content
promptdojo
_
[ save your spot ]
[ follow on x ]
Nested dicts and lists — digging through the JSON AI just dumped — step 2 of 9
ch 03 · lists and dicts
2/9
promptdojo
_
›
phase 01 · foundations
›
ch 03 · lists and dicts
lesson 3 of 3 · nested dicts and lists — digging through the json ai just dumped
step 2 of 9 in this lesson
Read the
data
shape in the editor. Which expression evaluates to the string
"marcus"
?
1
`data["members"]["name"][1]`
2
`data["members"][1]["name"]`
3
`data["team"]["members"][1]`
4
`data[1]["members"]["name"]`
check
ch 03 · lists and dicts
2/9
promptdojo
_
›
phase 01 · foundations
›
ch 03 · lists and dicts
lesson 3 of 3 · nested dicts and lists — digging through the json ai just dumped
step 2 of 9 in this lesson
Read the
data
shape in the editor. Which expression evaluates to the string
"marcus"
?
1
`data["members"]["name"][1]`
2
`data["members"][1]["name"]`
3
`data["team"]["members"][1]`
4
`data[1]["members"]["name"]`
check
park a thought