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