DevOps
Feature Flags JSON Example
A production-ready JSON example for a feature flag configuration object — covering gradual rollouts, A/B test variants, flag dependencies, and environment targeting. Used in LaunchDarkly-style flag systems.
Field Reference
versionrequiredstringSchema version of the flag config format.environmentrequiredstringTarget environment: production, staging, development.updatedAtrequiredstring (ISO 8601)When this config was last modified.flags.<name>.enabledrequiredbooleanMaster on/off switch for this flag.flags.<name>.rolloutrequirednumber (0–100)Percentage of users who see the new experience.flags.<name>.descriptionrequiredstringHuman-readable explanation of what this flag controls.flags.<name>.variantsoptionalstring[]Named variants for A/B or multivariate tests.flags.<name>.requiredFlagsoptionalstring[]Other flags that must be enabled for this flag to activate.flags.<name>.createdAtoptionalstring (date)ISO date when this flag was created.Variants
Staging environmentAll flags enabled at 100% in staging for full QA coverage
Common Use Cases
- →Gradually rolling out a new UI to 5%, 25%, 50%, then 100% of users
- →Running A/B tests with named variants and tracking conversion by variant
- →Disabling a broken feature in production without deploying new code
- →Gating beta features behind flags for early-access users only
- →Managing per-environment configuration without code changes
feature flagsLaunchDarklyrolloutA/B testingconfigurationDevOps
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
DataApp Config FileBackend config with database connection, auth settings, feature flags, and logging.API DesignWebhook EventWebhook event envelope with type, resource object, and retry metadata.DevOpsTypeScript Config (tsconfig.json)Modern tsconfig.json with strict mode, bundler resolution, path aliases, and JSX.