Generate concatenated string from JSON array

Recipe ToolsData ParserMarketingUtilities

What it does

When a function call is made, this automation parses JSON data and loops through each item to append it to a string variable. The final concatenated string is logged to the job report.

Who it's for

Engineering teams who need to transform JSON arrays into single concatenated strings.

How teams use this

Build a comma-separated list from JSON

Parse a JSON array of names and append each one to a string with commas between them. The job report shows the final formatted list for downstream systems.

Concatenate order items for notifications

Extract items from a JSON order payload and append them into a readable string. Send that string to a notification system or log for order confirmation.

Add custom delimiters between values

Modify the append logic to include a custom delimiter such as a pipe or semicolon between items. Set the delimiter as a variable so it can be reused across similar workflows.

How it works

  1. Receive the function call. A function call is made in real-time with JSON data passed as input to start this automation.
  2. Parse the JSON document. Json Parser extracts the array of items from the JSON payload so each element can be processed in the loop.
  3. Loop and append each item. Iterate through each item in the parsed list and append it to the string variable one at a time until all items are concatenated.
  4. Log the final concatenated string. Write the completed concatenated string to the job report so the appended result is recorded and visible for review.