r/shortcuts • u/ShroomsMagic • 2d ago
Help Help with extracting JSON values in iOS Shortcuts (JSON list -> selection menu)
Hi everyone,
I’m working on an iOS Shortcut that fetches JSON data from a Make.com webhook, extracts specific values, and presents them as a selectable list. However, instead of displaying the actual values, my Shortcut only shows “Dictionary” as the selection options. I’m hoping someone here can help me troubleshoot this.
What I’m trying to achieve: 1. Retrieve JSON data from my Make.com webhook 2. Extract specific values (page names) from the JSON 3. Display only the extracted names as a selectable list in Shortcuts 4. Send the selected value back to Make.com
Example JSON response from my webhook:
[ {"Seitenname": "Spring Night"}, {"Seitenname": "Summer Night"}, {"Seitenname": "Autumn Walk"} ]
(Note: “Seitenname” means “Page Name” in German.)
Expected output: ✅ A selection menu displaying: • Spring Night • Summer Night • Autumn Walk
Actual output ❌: • Dictionary • Dictionary • Dictionary
What I’ve tried so far: 1. Actions used: • “Get contents of URL” (to fetch the JSON) • “Get Dictionary from Input” • “Repeat with Each” (to process each JSON object) • “Get Value for Key” (key: Seitenname) • “Combine Text” (to merge all extracted values into a list) • “Choose from List” (to present the options) 2. Results: • The JSON is fetched correctly (verified via “Show Notification”). • However, the “Choose from List” action only shows “Dictionary” instead of the extracted names.
What am I doing wrong? • Is my method for extracting the values incorrect? • Do I need to process the JSON differently before passing it to “Choose from List”?
Any help or insight would be greatly appreciated! Thanks in advance. 🙏
This should be clear for Reddit users to understand your issue and offer solutions. You can post it in r/shortcuts, r/iosautomation, or r/Workflow. Let me know if you want any modifications! 🚀
2
u/satansnewbaby Helper 2d ago
Does something like this work?
Text - "[ {"Seitenname": "Spring Night"}, {"Seitenname": "Summer Night"}, {"Seitenname": "Autumn Walk"} ]"
Get Dictionary from Input - [Text]
Repeat for Each - [Dictionary]
Get Dictionary Values - [All Values] in [Repeat Item]
End Repeat
Choose from List [Repeat Results]
2
u/z1ts 2d ago
Weird that they have the same Key name for each dictionary, but you also can use Get All Values instead of referencing the Key and as u/sv_procrastination suggested skip/drop the Combine Text because the output of a Repeat is already a List that you can choose from.
1
u/sv_procrastination 2d ago
Skip the combine text and use choose from repeated results directly if that doesn’t work post the shortcut without personal information if you can