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
versionstringrequiredSchema version of the flag config format.environmentstringrequiredTarget environment: production, staging, development.updatedAtstring (ISO 8601)requiredWhen this config was last modified.flags.<name>.enabledbooleanrequiredMaster on/off switch for this flag.flags.<name>.rolloutnumber (0–100)requiredPercentage of users who see the new experience.flags.<name>.descriptionstringrequiredHuman-readable explanation of what this flag controls.flags.<name>.variantsstring[]optionalNamed variants for A/B or multivariate tests.flags.<name>.requiredFlagsstring[]optionalOther flags that must be enabled for this flag to activate.flags.<name>.createdAtstring (date)optionalISO 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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
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.