Parse and transform JSON on a schedule with Ruby

Recipe ToolsMarketingData ParserUtilitiesDeveloper Tool

What it does

When a scheduled trigger fires every 5 minutes, this automation parses a JSON document and executes Ruby code to transform employee details. The transformed output is logged to the job report.

Who it's for

Engineering teams who need to transform JSON data on a recurring schedule without manual steps.

How teams use this

Transform employee data hourly

Run this automation every hour instead of every 5 minutes to batch process larger employee datasets. The Ruby transformation stays the same and only the schedule changes.

Add validation before logging output

Include a condition to check if the transformed JSON meets schema requirements before logging to the job report. Only valid records are sent downstream.

Send transformed data to a database

After the Ruby transformation completes, insert the formatted employee records into a database instead of only logging them. The parsing and code execution steps remain unchanged.

How it works

  1. Start on a 5-minute schedule. The automation runs every 5 minutes to process the next batch of employee data.
  2. Parse the employee details. Json Parser reads the input document and converts it into structured data the next steps can work with.
  3. Execute Ruby code to transform. Custom Code runs the FormatJson Ruby script to reshape the employee data into the expected output format.
  4. Log the result to job report. The transformed output is logged to the job report so someone can confirm the data was formatted correctly.