JSON
The JSON data type in Snappit allows users to input structured data following the standard JavaScript Object Notation (JSON) format. It provides flexibility and precision for passing complex data structures into workflow steps.
🧾 What is JSON?
JSON stands for JavaScript Object Notation. It is a lightweight, human-readable format used to represent structured data as key-value pairs, arrays, nested objects, and more.
In Snappit, JSON inputs are especially useful when steps require detailed configurations or structured payloads.
✍️ How to Use
JSON inputs are written directly into a dedicated text field. The format must follow standard JSON rules:
{
"name": "John Doe",
"age": 30,
"active": true,
"preferences": {
"theme": "dark",
"notifications": false
}
}
✅ Behavior and Features
- Follows standard JSON syntax and structure
- Allows for nested objects and arrays
- Supports data types like strings, numbers, booleans, arrays, and null
- Provides a rich and flexible way to structure complex step inputs
Snappit automatically validates the input to ensure it conforms to correct JSON syntax. Incorrect formatting will prevent the workflow from executing.
🧩 Use Cases
- Sending structured payloads to API endpoints
- Defining nested configuration options for steps
- Embedding object data inside workflow logic
Using the JSON data type ensures your workflows remain dynamic, expressive, and compatible with structured data requirements.