Table of Contents

Method GetCanonicalForm

Namespace
RuleWright.Serialization
Assembly
RuleWright.Serialization.dll

GetCanonicalForm(Rule)

Renders the rule's compilation-relevant content (condition and actions) as a canonical JSON string: fixed key order, invariant number formatting, no whitespace. Exposed for testability and diagnostics.

public static string GetCanonicalForm(Rule rule)

Parameters

rule Rule

The rule.

Returns

string

Exceptions

ArgumentNullException

rule is null.