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.

Sign In or Register to comment.