This workflow template serves as a critical utility for data transformation, focused on converting Newline Delimited JSON (NDJSON) format into standard JSON. It decodes base64 payload, replaces newlines with commas, trims any trailing comma, and formats the data into a JSON structure. Ideal for businesses dealing with NDJSON data that requires processing or analytics in standard JSON format.
Use Cases
Function
Workflow Breakdown
Decodes the incoming base64 payload
Replaces newline entries with a comma
Removes the trailing comma at the end of the payload if required
Converts the remaining JSON escaped data
Vendors
Utils
Workflow Output
Standard JSON formatted payload
Tips
Ensure that the data goes into the workflow as base64 encoded using the \"Encode base64\" step or \"b64enc\" sprig function