JSON Examples - Real-World Data Samples & Code Examples

JSON examples collection featuring real-world data samples and learn from common patterns across different categories and use cases

User Profile

{
  "id": "user_123456",
  "username": "john_doe",
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "avatar": "https://example.com/avatars/john_doe.png",
  "dateOfBirth": "1990-05-15",
  "phoneNumber": "+1-555-0123",
  "address": {
    "street": "123 Main St",
    "city": "New York",
    "state": "NY",
    "zipCode": "10001",
    "country": "USA"
  },
  "preferences": {
    "theme": "dark",
    "language": "en",
    "notifications": {
      "email": true,
      "push": false,
      "sms": true
    }
  },
  "createdAt": "2023-01-15T10:30:00Z",
  "lastLoginAt": "2024-01-15T14:22:00Z",
  "isActive": true,
  "roles": [
    "user",
    "premium"
  ]
}

Authentication Response

{
  "success": true,
  "data": {
    "user": {
      "id": "user_789012",
      "username": "jane_smith",
      "email": "[email protected]",
      "firstName": "Jane",
      "lastName": "Smith",
      "role": "admin"
    },
    "tokens": {
      "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "tokenType": "Bearer",
      "expiresIn": 3600
    }
  },
  "message": "Authentication successful"
}

User List

{
  "data": [
    {
      "id": "user_001",
      "username": "alice_wonder",
      "email": "[email protected]",
      "firstName": "Alice",
      "lastName": "Wonder",
      "isActive": true,
      "lastLogin": "2024-01-15T09:15:00Z"
    },
    {
      "id": "user_002",
      "username": "bob_builder",
      "email": "[email protected]",
      "firstName": "Bob",
      "lastName": "Builder",
      "isActive": false,
      "lastLogin": "2024-01-10T16:45:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 150,
    "totalPages": 15,
    "hasNext": true,
    "hasPrevious": false
  }
}

User Settings

{
  "userId": "user_345678",
  "profile": {
    "firstName": "Emma",
    "lastName": "Wilson",
    "displayName": "Emma W.",
    "bio": "Software developer passionate about clean code",
    "location": "San Francisco, CA"
  },
  "settings": {
    "privacy": {
      "profileVisible": true,
      "showEmail": false,
      "allowMessages": true,
      "showOnlineStatus": false,
      "allowTagging": true,
      "searchable": true
    },
    "notifications": {
      "email": true,
      "push": false,
      "sms": true,
      "desktop": true,
      "marketing": false,
      "security": true,
      "mentions": true,
      "comments": false
    },
    "appearance": {
      "theme": "dark",
      "language": "en-US",
      "timezone": "America/New_York",
      "dateFormat": "MM/DD/YYYY",
      "timeFormat": "12h",
      "fontSize": "medium"
    },
    "accessibility": {
      "highContrast": false,
      "reducedMotion": false,
      "screenReader": false
    }
  },
  "preferences": {
    "autoSave": true,
    "defaultView": "grid",
    "itemsPerPage": 25
  },
  "lastUpdated": "2024-01-15T16:30:00Z"
}

User Registration

{
  "personalInfo": {
    "email": "[email protected]",
    "firstName": "Sarah",
    "lastName": "Connor",
    "dateOfBirth": "1985-07-13",
    "phoneNumber": "+1-555-0199",
    "gender": "female",
    "country": "United States",
    "state": "California",
    "city": "Los Angeles",
    "zipCode": "90210"
  },
  "accountDetails": {
    "username": "sarah_connor_85",
    "password": "hashedPassword123",
    "securityQuestion": "What was your first pet's name?",
    "securityAnswer": "hashedAnswer456"
  },
  "preferences": {
    "language": "en-US",
    "timezone": "America/Los_Angeles",
    "newsletter": false,
    "marketingOptIn": false,
    "smsNotifications": true,
    "emailNotifications": true
  },
  "verification": {
    "emailVerified": false,
    "phoneVerified": false,
    "verificationToken": "token_abc123xyz789"
  },
  "metadata": {
    "source": "organic",
    "referrer": null,
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
    "ipAddress": "192.168.1.100",
    "registeredAt": "2024-01-15T12:00:00Z"
  },
  "consent": {
    "agreeTerms": true,
    "agreePrivacy": true,
    "agreeMarketing": false,
    "consentDate": "2024-01-15T12:00:00Z"
  }
}

User Session

{
  "sessionId": "sess_abc123def456",
  "userId": "user_789012",
  "deviceInfo": {
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
    "browser": "Chrome",
    "os": "Windows 10",
    "device": "Desktop"
  },
  "ipAddress": "192.168.1.100",
  "location": "New York, NY",
  "startTime": "2024-01-15T14:00:00Z",
  "lastActivity": "2024-01-15T16:45:00Z",
  "isActive": true
}

User Permissions

{
  "userId": "user_456789",
  "roles": [
    "editor",
    "moderator"
  ],
  "permissions": {
    "read": true,
    "write": true,
    "delete": false,
    "admin": false,
    "moderate": true
  },
  "restrictions": [],
  "grantedBy": "admin_001",
  "grantedAt": "2024-01-10T09:00:00Z"
}

User Activity

{
  "userId": "user_123456",
  "activities": [
    {
      "action": "login",
      "timestamp": "2024-01-15T08:30:00Z",
      "details": {
        "method": "password"
      }
    },
    {
      "action": "view_page",
      "timestamp": "2024-01-15T08:31:00Z",
      "details": {
        "page": "/dashboard"
      }
    },
    {
      "action": "update_profile",
      "timestamp": "2024-01-15T09:15:00Z",
      "details": {
        "field": "avatar"
      }
    }
  ],
  "totalActions": 15,
  "lastActive": "2024-01-15T09:15:00Z"
}

Password Reset

{
  "email": "[email protected]",
  "token": "reset_token_abc123xyz789",
  "requestedAt": "2024-01-15T10:30:00Z",
  "expiresAt": "2024-01-15T11:30:00Z",
  "isUsed": false,
  "ipAddress": "192.168.1.100",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X)"
}

Master JSON with Real-World Examples

JSON examples provide the best way to learn JSON structure and syntax through practical, industry-standard data samples

Why Use JSON Examples?

JSON examples are essential learning resources for developers working with JavaScript Object Notation, the most widely used data interchange format in modern web development. Our curated collection of real-world JSON examples helps developers understand complex data structures, API responses, and configuration patterns used in production applications.

Whether you're building REST APIs, configuring applications, or working with databases, these JSON examples provide practical insights into JSON best practices and common patterns.

Categories Covered

  • User Management: Profiles, authentication, permissions
  • E-commerce: Products, orders, payments, inventory
  • API Responses: Success, errors, pagination, webhooks
  • Location Data: GPS coordinates, addresses, maps
  • Social Features: Posts, messages, notifications
  • Configuration: App settings, environment variables

Features & Benefits

Syntax Highlighting

Beautiful color-coded JSON with VS Code themes

One-Click Copy

Copy any JSON example to your clipboard instantly

Real-World Data

Practical examples from actual applications

Responsive Design

Perfect viewing on desktop, tablet, and mobile

Dark Mode Support

Dracula theme for comfortable coding

Detailed Descriptions

Hover tooltips explain each example's purpose

JSON Examples Questions & Answers

Get answers to common questions about our JSON examples collection and how to use them effectively.

What kind of JSON examples are available?

We provide a variety of JSON examples including API responses, configuration files, data structures, and real-world use cases to help you understand different JSON patterns and structures.

How can I use these JSON examples?

You can copy any JSON example and use it in our JSON Editor, Formatter, or Converter tools. Each JSON example is designed to demonstrate specific JSON features and best practices.

What categories of JSON examples do you offer?

Our JSON examples are organized into categories like API responses, configuration files, data models, schemas, and complex nested structures to cover various use cases.

Are these real-world JSON examples?

Yes, our JSON examples are based on common real-world scenarios and industry standards. They represent typical JSON structures you might encounter in web development, APIs, and data exchange.

Do you have API response JSON examples?

Absolutely! We include JSON examples of REST API responses, GraphQL queries, webhook payloads, and other common API patterns that developers work with daily.

Can I suggest new JSON examples?

We welcome suggestions for new JSON examples! If you have a specific JSON structure or use case you'd like to see included, please let us know and we'll consider adding it to our collection.