MS

Hello, I’m Michael Sliwinski, founder of Nozbe - to-do app for business owners and their teams. I write essays, books, work on projects and I podcast for you using #iPadOnly in #NoOffice as I believe that work is not a place you go to, it’s a thing you do.

🥳 ✅ BLACK FRIDAY 🖤 Get 3️⃣ MONTHS of Nozbe FREE 🙏 👍

How to manipulate JSON Dictionaries in Shortcuts

🔗Shortcuts

I love tinkering with Shortcuts on iPad or iPhone and one of my most powerful one is the Journaling Shortcut. I’m using this to journal every day and turns out other people are also using it and they had some feedback for me. One of the suggestions was to make questions in the Shortcut more customizable. Before I implemented it I wanted to create a proof of concept - how would editing (creating, changing or removing) questions look like? Turns out, it’s not so easy with Shortcuts, but I figured it out.

How to manipulate JSON Dictionaries in Shortcuts

Saving questions as a JSON file or a Dictionary in Shortcuts

JSON standard is a way to store Key->Value pairs and is reflected in Shortcuts as a Dictionary. To edit the JSON files I use the simple Jayson app by Simon Støvring.

Now, Shortcuts has great support of Dictionaries but manipulating them is not easy, because you have only three actions associated with them:

There’s no “Remove Dictionary Value” for example. To remove a dictionary value you basically have to create a new dictionary without this value, always paying attention that when you modify a dictionary you have to save it to the same variable. It’s complicated.

Dictionary support in Shortcuts has bugs!

One of my favorite bugs (or “features”?) of Dictionary support in Shortcuts is that when you save the dictionary, it very often changes the order of items randomly. That’s right, the first item may no longer be first, it might be the last suddenly… Upon each save the dictionary order may or may not change. It’s random.

Definitive Shortcut that demonstrates Dictionary manipulation

That’s why as a reference for myself and for anyone who finds this useful, I built a “definitive” Shortcut that demonstrates how to get a Dictionary from JSON, how to edit a chosen item, remove it or add a new one… and take into account the “random order” bug.

It comes down to this:

As a bonus, my questions also require an Emoji sign associated with each question, so I’ve thrown it in there as well if you’re curious.

Get the “Edit Questions” Shortcut

Remember, if you want to test out this Shortcut, you must download the accompanying JSON file: questions.json and save it in the iCloud > Shortcuts folder.

Wednesday, November 12, 2025 /json/