JSON Schema
Structure automation responses with JSON Schema for reliable data extraction
Overview
JSON Schema allows you to define the exact structure you want for automation responses, ensuring consistent, parseable data output. This is particularly powerful for data extraction tasks where you need structured information in a specific format. To use JSON Schema, you need to add the responseFormat
parameter to your Remote Dispatch request.
Adding JSON Schema to Your Request
Here’s how to add the responseFormat
parameter to your remote dispatch request:
Supported Data Types
Parsing API Responses
When using JSON Schema, the response.text
field contains valid JSON that matches your specified schema. You can directly parse this text to get a structured object ready for use in your application.
Recommended Tools
JSON Schema Validator
Online tool for testing and validating JSON schemas
JSON Schema Generator
Generate schemas from example JSON data
AJV Library
Fast JSON schema validator for Node.js
jsonschema (Python)
JSON schema validation for Python