API Documentation
Schema Documentation
JSON Schema Documentation
JSON Anything uses JSON Schema to define the structure of data you want to extract. This documentation covers all the schema features supported by our API.
Getting Started with JSON Schema
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. In JSON Anything, schemas define what data should be extracted from unstructured text and how it should be structured.
{ "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "number" } }, "required": ["name"] }
The schema above tells our AI to look for a person's name and age in the text, structure it as an object, and ensure the name is always present (required).
Schema Documentation Pages
Explore our schema documentation pages to learn about all the features available:
Basic Types
Learn about string, number, boolean, and null types.
Arrays
Work with lists of items in your schemas.
Objects
Create complex nested structures with objects.
Enums
Use enumerated values to limit options.
Advanced Features
Learn about optional values, default values, and more.
Best Practices
Tips for creating effective schemas for better extraction results.