Generate parsed data from JSON strings in batch
Recipe ToolsDeveloper ToolMarketing
What it does
When someone calls this function, it creates a list of JSON strings and parses them all at once using Ruby code. Batch parsing is faster than parsing each string individually in a loop.
Who it's for
Engineering teams who need to process multiple JSON payloads efficiently without looping through each one.
How teams use this
Process API responses in bulk
Parse multiple JSON payloads from an API response all at once instead of looping through each one. This reduces execution time when handling large datasets from external systems.
Transform batch data imports
When importing data from a file or system that contains multiple JSON objects, parse them all together in a single batch operation for faster processing and immediate availability.
Add custom validation to parsed data
Extend the Ruby code to include validation checks on each parsed JSON object, filtering or transforming the data based on specific conditions before returning results to downstream systems.
How it works
- Call the function. Someone invokes this Workato Recipe Function in real time to start the batch parsing process with the JSON strings ready.
- Build a list of JSON strings. Workato Recipe Function creates a list containing multiple JSON strings that need to be parsed together in one batch operation.
- Parse all strings with Ruby code. Workato Custom Code executes Ruby to parse all JSON strings from the list at once, returning the parsed data without individual loops.