validatePolicyJSON(policy): Either<RulesError[], PolicyJSON>
Defined in: src/modules/validation.ts:681 Parses a JSON string and returns Either a PolicyJSON object or an error.

Parameters

ParameterTypeDescription
policystringstring to be parsed.

Returns

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