← All examples

Customer JSON Example

A compact customer record with nested profile, address and preferences data. Use it to test JSON formatting, validation, TypeScript conversion and Java DTO generation.

Open in Workspace
{
  "id": "cus_1001",
  "email": "maya@example.com",
  "active": true,
  "profile": {
    "firstName": "Maya",
    "lastName": "Chen",
    "loyaltyTier": "gold"
  },
  "address": {
    "city": "Seattle",
    "country": "US",
    "postalCode": "98101"
  },
  "preferences": {
    "newsletter": true,
    "channels": [
      "email",
      "sms"
    ]
  }
}