by Patrick Corgan
𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯
A quick example of reading and writing files using JSON objects. JSON is handy because the data is machine-readable, which gives you a lot of flexibility in handling the data. You can easily display it in any format you want, or you can process it however you want.
This could also be used to share data between flows, or to save data that should be persistent even if the flow is changed (which clears the value of any atomic variables used in the flow).
⚡𝘊𝘰𝘯𝘴𝘵𝘳𝘶𝘤𝘵𝘪𝘷𝘦 𝘤𝘰𝘮𝘮𝘦𝘯𝘵𝘴 𝘢𝘯𝘥 𝘤𝘳𝘪𝘵𝘪𝘤𝘪𝘴𝘮𝘴 𝘢𝘳𝘦 𝘢𝘭𝘸𝘢𝘺𝘴 𝘸𝘦𝘭𝘤𝘰𝘮𝘦. 𝘛𝘩𝘢𝘯𝘬 𝘺𝘰𝘶!⚡
Version 2: Minor cosmetic changes and a bug fix.
Version 3: Converted to storing the data as an array of dictionaries. This makes the reading/writing process simpler and more intuitive.
Rate and review within the app in the Community section.