How can i get the values of a key inside square brackets, using dict?

lasmiveni's icon


I don't think I quite understand the syntax to use to get values within a dict.
I tried to find a solution here on the forum and looked for a way to get the value of a key that appears to be inside another key without being contained between figure brackets {...} ... I don't know how to do it.

Can anyone help me understand? thank you

Max Patch
Copy patch and select New From Clipboard in Max.

lasmiveni's icon
Bradley Korth's icon

Ooh, dictionaries in Max aren't meant to store nested arrays. It would be more conventional to put dictionaries inside other dictionaries.

If the array weren't nested, then Max would output a list instead. If you can translate the nested array into another dictionary, then dict.iter can iterate all the values for you.