Skip to content

API Reference


API Reference / @dasch-ng/validators / jsonValidator

Variable: jsonValidator ​

const jsonValidator: ValidatorFn

Defined in: json/json.validator.ts:8

Fails with { invalidJson: { message } } when a string value is not valid JSON. Empty and non-string values pass; combine with Validators.required if needed.

Released under the MIT License.