I’d like to introduce JSON machine. A simple way to work with JSON data inside your app. Read & Write JSON any sort of data to a DB text field, a page state, & more.
I built this to reduce calls to the DB for many types of queries by wrapping the entire data structure into a single, fast, text object that can be parsed and used. I found built-in solutions like regex and conditional text to be kludgy and other JSON plugins were purpose built for other purposes (like my other plugin jsoNest). I’m surprised this plugin hasn’t been done sooner (or maybe it has but I can’t find it). In either ease this is my attempt.
You’ll want to take a look here to see implementation strategies
JSON machine lets you work with JSON directly on the page. Load and Save complex structured data in JSON and work with the output data in dynamic expressions.
Work with JSON data inside your app. Read & write. Store complex data structures easily a single text field.
Why use this?
-Make use of JSON to store complex data structures in a string.
-Store JSON anywhere such as a database text field, a page state, browser cookle/localstorage, accept json input from users, the list goes on.
-Improve scaling and simplify /speed up complex DB calls – Working with the Bubble DB, especially on advanced queries with multiple related types, can be slow and have large server overhead. By reading from and writing to a single text field you can save significant overhead.
-If you are using complex / limiting Regex to parse JSON.
Why not use this.
- No backend workflow support yet to work with JSON
- Although this is a flexible solution, it is coloring outside of the lines somewhat. Bubble doesn’t have a way to search JSON values inside the DB for example.