I’m struggling a bit with understanding a certain part of the “Get Dictionary Value” action.
What I Know:
If I have a dictionary that looks like this: {"data":{"first":"one","second":"two","third":[{"three":"lolcat"}],"fourth":"four"}}, to get the value for second I would
Get Dictionary Value: data
Get Dictionary Value: second
Output will be: two
But how do I get the value for three (which would be lolcat)?
Technically it’s place as third.0 but Shortcuts doesn’t recognize that, instead asking me to select from a menu which key I’d move on with (and they a all just named Dictionary.
I know It’s always0 (in my specific case) but trying
It always helps to post your Shortcut, but I think I get it now. If a menu is coming up, it’s asking you to input an index or key.
Try entering “three” or “1”. (Not “0”, like I said, the dictionary starts at 1, plus there’s no key called “0”.
In addition to the above, and assuming you haven’t already, take a look at the this page in the Apple support guide and the list handling page it links to at the end.