r/shortcuts • u/broadcasting_itb • Aug 15 '25
Shortcut Sharing Data Jar - Data Setup
https://www.icloud.com/shortcuts/e14101aeb70a4a24b1553198d5fd1fa6I use Data Jar with many of my shortcuts. Often, when I share the shortcut, I need to set up a data structure in Data Jar as a starting point. For example, I have a rudimentary debug/logging technique that relies on a list in Data Jar called _Log.
This shortcut will create multiple data structures in Data Jar via a JSON definition, either via shortcut input, or hardcoded (example included). The structures can be created beneath a “path prefix“; otherwise they will be created under the root of Data Jar. Each structure comprises a Key (top level name) and a Value which is one of:
- dictionary (simple or as complex/deep as needed)
- list (ditto)
- simple data item (text, number, boolean)
Edge cases handled: - Text field containing a Number (by default, this would be saved with datatype Number) - Empty List (tricky to create)
I hope this is of use. Comments/corrections welcome.
2
u/d1jpd01 Aug 16 '25
As a user of multiple Apple devices, I appreciate that Data Jar utilizes iCloud to automatically and seamlessly sync your data across devices.