What is JSON?
JSON (JavaScript Object Notation) is a structured way to represent information that computers can easily understand. Human language: “A person has a name Ravi and age 26.” JSON version:Data types
Objects
Containers for multiple fields using{ } with key-value pairs:
Numbers
Numeric values without quotes:Strings
Text values wrapped in double quotes:Booleans
Simple true/false values:Arrays
Lists of values using[ ]:
Null
Empty or undefined values:What is JSON Schema?
A JSON Schema defines the rules and structure that data must follow. Think of it as a blueprint that tells the system:- What fields are expected
- What type each field should be
- Which fields are required
Example schema
- Expect an object with
name,age, andgenderfields namemust be a string and is requiredagemust be a numbergendermust be one of the allowed values
Key schema properties
| Property | Description |
|---|---|
type | The data type (object, array, string, number, boolean) |
properties | Field definitions for objects |
required | Array of required field names |
enum | Allowed values for a field |
items | Schema for array elements |
Using schemas in workflows
Output schemas
Define the expected output structure for steps:Validation
Output schemas are used for:- Validation - Ensure step outputs match expected structure
- Tooling - Help the editor infer available data fields
- Documentation - Self-documenting workflow definitions
JSON Schema builder
For non-developers, Workflow Builder includes a visual JSON Schema Builder that lets you create schemas without writing code:- Add a field
- Choose its type (text, number, boolean, date)
- Mark if it’s required
- Set allowed values (for enums)
Common patterns
Nested objects
Arrays of objects
Optional fields with defaults
Next steps
DSL types
Learn about the workflow DSL type system
Validation rules
Understand workflow validation