safeParseJson(input): Either<RulesError[], object>
Defined in: src/modules/validation.ts:28 Parses a JSON string and returns Either a successful result or an error.

Parameters

ParameterTypeDescription
inputstringstring to be parsed.

Returns

Either<RulesError[], object> Either the parsed string or an error.