safeParseJson(Defined in: src/modules/validation.ts:137 Parses a JSON string and returns Either a successful result or an error.input):Either<RulesError[],object>
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | string to be parsed. |
Returns
Either<RulesError[], object>
Either the parsed string or an error.