JSON Examples Library
A library of 74 copy-ready JSON examples across 13 categories — from AI & LLM payloads and REST APIs to authentication, e-commerce, DevOps, and finance. Every example documents each field's type and meaning, shows real-world variants, and lists common use cases, so you learn the shape instead of just copying it. Open any example straight into the JSON Formatter, Validator, or type generators in one click — or generate realistic mock data from any example's structure. Use the search and category filters below to find exactly what you need.
AI & LLM
20OpenAI Chat Completion Response
OpenAI Chat Completions API response with choices, message, finish_reason, and usage.
Anthropic Claude Messages Response
Claude Messages API response with content blocks, stop_reason, and token usage.
LLM Tool / Function Call
Function-calling JSON: a tool definition plus the model's tool_call with arguments.
Embedding Vector Response
Embeddings API response with the vector array, model, and usage.
RAG Document Chunk
A RAG chunk with text, source metadata, embedding reference, and relevance score.
Chat Conversation History
Ordered messages array with system, user, and assistant roles for LLM chats.
AI Agent Run Trace
Agent run with goal, reasoning steps, tool calls, observations, and final output.
MCP Message (Model Context Protocol)
Model Context Protocol (MCP) JSON-RPC 2.0 message: tools/list and tools/call.
LLM Structured Output (JSON Schema)
Structured output request with a JSON Schema and the model's schema-valid response.
Fine-Tuning Dataset Example (JSONL)
A single fine-tuning training example in the chat messages JSONL format.
Vector Database Search Query
Vector DB query with topK and filter, plus a ranked matches response.
Speech-to-Text Transcription (Whisper)
Speech-to-text response with text, language, duration, and timestamped segments.
AI Image Generation Request & Response
Text-to-image generation request and response with prompt, size, and image URLs.
Prompt Template (Reusable)
Reusable prompt template with variables, model params, and few-shot examples.
LangChain / LlamaIndex Document
A LangChain/LlamaIndex Document with page_content and metadata for RAG pipelines.
AI Agent Tool Registry
A registry of agent tools, each with a name, description, and JSON Schema parameters.
LLM Evaluation / Benchmark Result
LLM eval run with per-case scores, metrics, and aggregate pass rate.
Content Moderation Response
Moderation API response with flagged status, category flags, and scores.
RAG Answer with Citations
A grounded RAG answer with an array of cited sources and confidence.
OpenAI Chat Completion Response
OpenAI chat completion response JSON with message content, finish_reason, and token usage.
API Design
10User Profile
Standard user profile JSON with personal info, address, and account metadata.
REST API Response
Generic REST API response wrapper with data payload, status, and pagination meta.
Pagination Response
Paginated list response JSON with offset, cursor, total, and navigation links.
Error Response
REST API error JSON with status code, machine-readable error code, and validation details.
Webhook Event
Webhook event envelope with type, resource object, and retry metadata.
GraphQL API Response
GraphQL response JSON with nested data, cursor pagination, and request extensions.
Search API Response
Search API response JSON with scored hits, highlights, facets, and pagination.
OpenAPI 3.1 Specification (JSON)
OpenAPI 3.1 spec in JSON with a path operation, responses, and a reusable schema.
GraphQL Query Request
GraphQL request body JSON with query, variables, and operationName fields.
Postman Collection
Postman Collection v2.1 JSON with folders, a request, and collection-level variables.
Web & Standards
4package.json (npm)
npm package.json with scripts, dependencies, engines, and project metadata.
GeoJSON Feature
RFC 7946 GeoJSON Feature with Point geometry, coordinates, and properties.
JSON-LD Structured Data (Schema.org)
Schema.org JSON-LD for an Article with @context, @type, author, and publisher.
tsconfig.json
TypeScript tsconfig.json with strict compiler options and path alias configuration.
Authentication
2Data
14Address
Postal address JSON with structured fields for street, city, state, country, and coordinates.
Geolocation
GPS coordinates with accuracy, altitude, speed, and reverse-geocoded address.
App Config File
Backend config with database connection, auth settings, feature flags, and logging.
Weather Data
Current weather and forecast with temperature, wind, humidity, and UV index.
HTTP Status Codes
Reference dataset of 12 HTTP status codes with category, text, and description.
Programming Languages
Reference JSON for 8 popular languages with year, creator, paradigm, and use case.
JSON Form Schema
Dynamic form definition JSON with field types, validation, selects, and layout.
Country Codes (ISO 3166-1)
ISO 3166-1 country codes with alpha-2, alpha-3, numeric, continent, and calling code.
Currency Codes (ISO 4217)
ISO 4217 currency codes with symbols, minor units, and sample countries.
MIME Types Reference
Common MIME types with file extensions, categories, and usage descriptions.
IANA Timezones Reference
Major IANA timezone IDs with UTC offsets, DST offsets, and regional metadata.
US States (All 50 + DC)
All 50 US states and DC with postal codes, capitals, regions, and statehood years.
India States & Union Territories
All 28 Indian states and 8 Union Territories with codes, capitals, regions, and ISO codes.
MongoDB Document
MongoDB document JSON with ObjectId, embedded address sub-document, and referenced order ids.
DevOps
6Feature Flags
Feature flag config JSON with rollout percentages, variants, and flag dependencies.
TypeScript Config (tsconfig.json)
Modern tsconfig.json with strict mode, bundler resolution, path aliases, and JSX.
Kubernetes Deployment Manifest (JSON)
Kubernetes Deployment manifest in JSON with replicas, containers, resources, and probes.
Docker Compose (JSON)
Docker Compose multi-service config in JSON with ports, env, volumes, and depends_on.
GitHub Actions Workflow (JSON)
GitHub Actions workflow in JSON with triggers, a job, steps, and a matrix.
GitHub Webhook (Push Event)
GitHub push webhook event JSON with ref, commit list, pusher, and repository details.
E-commerce
3E-commerce Order
Full e-commerce order JSON with line items, pricing, shipping, and payment status.
Product Listing
E-commerce product JSON with pricing, variants, images, and inventory fields.
Payment Transaction
Payment transaction with amount, method, gateway reference, and refund history.
Business
5Invoice
Business invoice JSON with line items, GST breakdown, payment terms, and totals.
Employee Record
HR employee record with department, compensation, manager, and employment details.
Calendar Event
Meeting or event with attendees, recurrence rules, timezone, and location.
Restaurant Menu
Restaurant menu with categories, items, allergens, prices, and availability.
Audit Log Entry
Audit log JSON with actor, target, changes diff, and request metadata.
Finance
2Content
3Blog Post
Blog post JSON with author, categories, SEO metadata, and publish status fields.
Social Media Post
Social feed post with media, reactions, reshares, and thread metadata.
Push Notification
Push notification with title, body, deep-link data, and platform-specific options.
Social
2IoT & Sensors
2Healthcare
1How to use the JSON Examples Library
Every developer hits the same wall: you know roughly what a piece of JSON should look like — a user object, an API error, an LLM tool call — but you want a correct, complete reference instead of guessing field names and nesting. That's what this library is for. Each example is a hand-written, real-world structure you can copy in one click and adapt to your own data.
Examples go beyond the raw snippet. Every page documents each field's type, whether it's required, and what it means, so you understand the shape rather than blindly copying it. Most include several variants — a request vs. a response, a single item vs. a collection, a minimal vs. a full version — plus real use cases and FAQs.
The fastest workflow is to open an example and click Format, Validate, Explore tree, or Generate TypeScript — the exact JSON loads straight into that tool. You can also paste your own data into the JSON Formatter, Validator, or JSON to TypeScript generator at any time.
Building AI features? Start with the AI & LLM category at the top — it covers the exact JSON shapes you parse when working with OpenAI, Anthropic Claude, embeddings, vector search, RAG, agents, and the Model Context Protocol (MCP). For a guided tour, read JSON for AI & LLM Engineering.
Frequently asked questions
Got a JSON example to validate?
Paste any JSON into JSONKit's tools — format, validate, minify, or convert it in seconds.