Skip to main content

Parse

The Parse step in Snappit is used to convert dynamic JSON strings into structured data based on a predefined schema. This step is essential when dealing with external or user-provided data that needs to be validated and transformed before use in a workflow.

Snappit Parse Step

🎯 Purpose

To safely parse and validate a string of JSON into a structured object using a predefined JSON schema.


🧭 Behavior

  • Accepts a raw string input (typically a JSON string)
  • Parses the string into a JavaScript object
  • Validates and shapes it according to the user-defined schema
  • Makes the structured data available for subsequent steps

⚙️ Configuration

  • schema: JSON schema definition used to validate and structure the parsed result
  • text: A raw string that is expected to be valid JSON string

✅ Use Cases

  • Transforming API responses or raw data into usable workflow inputs
  • Extracting values from user-submitted JSON strings
  • Validating JSON strings against expected structures

The Parse step helps ensure your workflows handle data reliably and predictably by converting and validating raw JSON inputs into structured formats.