JSON Examples
Browse, copy, and learn from real-world JSON examples for APIs, schemas, configs, and datasets.
Basic JSON
- Simple JSON Object BeginnerA basic key-value JSON object with string, number, and boolean values.object key-value beginner
- Nested JSON Object BeginnerA JSON object with nested objects demonstrating hierarchical data structures.nested object hierarchy
- Array of Objects BeginnerA JSON array containing multiple objects, common in API list responses.array objects collection
- Empty Structures and Null Values BeginnerJSON with empty objects, empty arrays, null values, and empty strings.empty null beginner
- Mixed Data Types BeginnerA JSON object demonstrating all supported data types: strings, numbers, booleans, null, arrays, and objects.types string number
- Special Characters and Unicode IntermediateJSON with escaped characters, newlines, tabs, and Unicode escape sequences.unicode escaped special
- Timestamps and Dates BeginnerCommon timestamp formats in JSON: ISO 8601, Unix seconds, Unix milliseconds, and timezone offsets.date time iso8601
- Deeply Nested Object IntermediateA JSON object with multiple levels of nesting to demonstrate deep hierarchical structures.nested deep hierarchy
Authentication
API Responses
- User Profile Object IntermediateA complete user profile with settings, bio, and metadata fields.user profile REST
- Paginated User List IntermediateA list of users with cursor-based pagination metadata.user list pagination
- Cursor-Based Pagination IntermediateAn API response using cursor-based pagination with hasMore flag.pagination cursor REST
- Offset-Based Pagination IntermediateAn API response using offset-based pagination with page and total counts.pagination offset page
- REST API Error Response IntermediateA structured error response with error code, message, and field-level validation details.error REST http
- Validation Error Response IntermediateA 422 validation error with field-level error messages for form validation.validation error form
- Rate Limit Error Response IntermediateA 429 rate limit response with retry-after and rate limit headers.rate-limit 429 throttle
Ecommerce
- Product Object IntermediateA detailed ecommerce product with pricing, inventory, images, and ratings.product ecommerce inventory
- Product List IntermediateA paginated list of products for an ecommerce catalog.product list catalog
- Shopping Cart IntermediateA shopping cart with line items, subtotal, tax, and total calculation.cart ecommerce order
- Order Confirmation Response IntermediateAn order confirmation with customer details, line items, and order totals.order ecommerce checkout
- Payment Processing Response IntermediateA payment transaction response with status, amount, and payment method details.payment stripe transaction
Configuration Files
- package.json (Node.js) BeginnerA standard Node.js package.json with scripts, dependencies, and project metadata.npm node package
- tsconfig.json (TypeScript) BeginnerA TypeScript compiler configuration with strict mode and modern module settings.typescript tsconfig compiler
- GitHub Actions Workflow IntermediateA GitHub Actions CI workflow with checkout, setup, and test steps.ci github actions
- VS Code Settings BeginnerVS Code editor settings for formatting, minimap, and file exclusions.vscode editor ide
- Firebase Configuration IntermediateFirebase Firestore rules and hosting configuration with caching headers.firebase backend bass
- Web App Manifest (PWA) BeginnerA progressive web app manifest with icons, theme, and display settings.pwa manifest web-app
JSON Schema
- User JSON Schema IntermediateA JSON Schema for validating user objects with required fields, patterns, and enums.schema user validation
- Product JSON Schema IntermediateA JSON Schema for validating product objects with nested price and array fields.schema product ecommerce
- Order JSON Schema AdvancedA comprehensive order schema with status enum, line items array, and totals object.schema order ecommerce
- Error Response Schema IntermediateA JSON Schema for validating API error responses with structured error details.schema error api
- Conditional Schema (oneOf) AdvancedA JSON Schema using oneOf discriminator for polymorphic payment method validation.schema conditional if-then-else
OpenAPI
Databases
- MongoDB Document IntermediateA MongoDB document with embedded objects, arrays, and extended JSON types.mongodb nosql document
- Firebase Firestore Document IntermediateA Firebase Firestore document with nested preferences and array fields.firebase firestore nosql
- Elasticsearch Document AdvancedAn Elasticsearch indexed document with _index, _id, _score, and _source fields.elasticsearch search index
Web & Frontend
- Navigation Menu JSON BeginnerA JSON structure for a website navigation menu with nested children items.navigation menu frontend
- SEO Structured Data (JSON-LD) IntermediateA JSON-LD structured data block for a website with Schema.org WebSite type.seo structured-data json-ld
- Feature Flags Configuration BeginnerA feature flags configuration with rollout percentages and user targeting.feature-flags config toggles
- Chart Data Structure BeginnerA data structure for rendering charts with labels, datasets, and color values.chart data visualization
Datasets
- Countries Dataset BeginnerA reference dataset of countries with codes, names, capitals, and population.countries geography reference
- Programming Languages Dataset BeginnerA dataset of programming languages with year, paradigm, and type information.programming languages reference
- People Dataset BeginnerA sample people dataset with names, emails, ages, and occupations for testing.people users sample-data
No examples found. Try a different search term.