Skip to main content
IsJSON(validationOptions?): PropertyDecorator
Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsJSON.d.ts:12 Checks if the string is valid JSON (note: uses JSON.parse). If given value is not a string, then it returns false.

Parameters

validationOptions?

ValidationOptions

Returns

PropertyDecorator