JSON Assistant
The JSON Assistant is a utility plugin that can be used to convert data to JSON format and extract values from JSON.
The plugin is available for a one-time fee of $5 , making it an affordable and valuable addition to any developerâs toolkit.
It includes two powerful elements to help you work with JSON data like a pro:
- Things to JSON
- JSON Extractor
You can supercharge your Bubble app with these easy-to-use, flexible tools!
Here are some use case of the JSON Assistant in applications:
bubble -> JSON
Convert lists of custom data type to JSON format to manipulate, store or transfer data to third parties API.
Get values of complex JSON
Extract specific values from complex JSON data without having to write custom code.
Integrate external APIs
Easily integrate external APIs that require JSON data into your bubble app.
Prepare data for bubble
Make the data you receive through the API clean and usable in the bubble.
Simplify workflows
Simplify workflows and reduce the number of steps required to manipulate JSON data in your application. You can use server or client-side actions for making the conversation.
Get Values of Custom Key
By entering the name of the key, you can extract all the values related to it from JSON and have it in the form of a list
Letâs take a closer look at the two elements included in this plugin:
JSON Extractor
This element Extracts data from JSON and offers great flexibility when dealing with data in JSON format.
Key Features
- You can use it in workflows or from the element itself
- Filter the data you donât need
- Trigger events when conversion is done
- Server sides actions
The JSON Extractor provides these exposed states
State | Description | Type |
---|---|---|
List of Keys | Get a list of the JSONâs keys | list of texts |
Values of Key 1 - 10 | Extracted values of each key in separated lists | list of texts |
Index | Index of values, from 1 to count of values. | list of numbers |
Filtered JSON | Filtered JSON can be reused for other purposes | text |
Instruction
Working with this element is very straightforward.
After adding the element to the page (no matter where you place it, it has no effect on other components and will be hidden when the app runs).
Link the JSON to the plugin element. If needed, you can also use the filter feature.
Now for the first ten keys, the values are available through element states.
If your file has more than ten keys, you can add another element and set the starting point to 11 to continue the values. You can repeat this as many times as needed.
Input fields:
- JSON
- Start Point: Set which JSON key to start extracting from
- Trigger on Page Load (You can run the conversion by Run action )
- Filtering Key: Choose the key for filtering values
- Operation: (Equal, >, <, <=, >=, Not equal)
- Filter Value
Things to JSON
This element allows you to convert custom data to JSON format with ease.
Instruction
You can specify the data type and data source, and the converted JSON and fieldsâ names of the custom data type are exposed as states.
Also, âIs Readyâ event is triggered when the output is ready. This makes it easy to prevent errors when using the output data.
We provide an action with the same functionality which allows you to start the conversion at the right time. This method does not affect the initial load of the app page.
We believe these two elements will make your JSON data handling a breeze!
The JSON Assistant plugin is a must-have for any bubble developer looking to save time and streamline their workflow.