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