Node SDK
jsonVariation
Evaluate a JSON flag and get a structured value back.
The typed helper for JSON flags, for structured configuration. A flag of another type returns your default with ERROR / WRONG_TYPE. The value is not validated against T; treat it as input.
jsonVariation<T>(key: string, ctx: Context, d: T): Tconst limits = flags.jsonVariation('rate-limits', ctx, { rps: 5, burst: 10 });The SDK is @rollkit/sdk in the repository (packages/sdk). It is for server-side Node; browsers use a client key with the delivery API.