Dynamic JSON
Is there a way to create dynamic JSON? I need the fields to be determined at runtime.
Comments
-
If your data is already available as an object and you need to convert it into JSON, you can use the ‘Create JSON from Data’ step. Please refer to the documentation for more details: Create JSON from Data.
If the data is available but not in a structured format, you can create a JSON string in the flow using the ‘Create Data’ step.
Here’s how you can achieve this:
- Create a variable named ‘JSON String’ to store the JSON data in a key-value pair format using the create data step.
- Since the keys and values are dynamic and retrieved from the flow, use the ‘Merge Text’ option as input for the ‘JSON String’ variable.
- Construct the required JSON structure by selecting the necessary keys and values from the left-side data panel and add the required fillers like special characters to complete the JSON structure
Note: The JSON structure must be built from scratch—everything that needs to be included should be added to the ‘JSON String’ variable in the Create Data step.
Howdy, Stranger!
Categories
- 4.3K All Categories
- 74 General
- 13 Training
- 206 Installation / Setup
- 1.1K Flows
- 110 Rules
- 270 Administration
- 212 Portal
- 496 General Q & A
- 709 Forms
- 344 Reports
- 3 Designer Extensions
- 48 Example Flows
- 57 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 185 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 229 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 58 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions