validateRuleJSON(rule): Either<RulesError[], RuleJSON>
Defined in: src/modules/validation.ts:322 Parses a JSON string and returns Either a RuleJSON object or an error.

Parameters

ParameterTypeDescription
rulestringstring to be parsed.

Returns

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