Arbitraryjsonjson Callablejson(constraints?: MaybePartial<JsonGenerator>): Dependent<JsonValue>It returns an arbitrary that generates valid json. Examplerandom(json())// => {}random(json())// => {"i|": false}random(json({type: 'array'}))// => [false]Parametersconstraints: MaybePartial<JsonGenerator> = {}Returns Dependent<JsonValue>A json arbitrary.
It returns an arbitrary that generates valid json.
Example