{ // feature: json5 (comments, trailing commas) + __variants // try: /__test/profile · ?plan=pro · header X-Admin: 1 __variants: [ { when: { query: { plan: 'pro' } }, delay: 200, body: { plan: 'pro', seats: 25, features: ['sso', 'audit'] }, }, { when: { headers: { 'x-admin': '1' } }, body: { plan: 'enterprise', seats: 999, features: ['sso', 'audit', 'scim'] }, }, { // fallback (no `when`) body: { plan: 'free', seats: 1, features: [] }, }, ], }