API Reference > presentation-common > Core > RulesetVariable > RulesetVariable.toJSON RulesetVariable.toJSON Function Serialize given RulesetVariable to JSON. Note: In case of Id64sRulesetVariable, this method expects IDs are sorted. See sortArray. toJSON(variable: RulesetVariable): RulesetVariableJSON Parameter Type Description variable RulesetVariable Returns - RulesetVariableJSON Defined in presentation/common/src/presentation-common/RulesetVariables.ts Line 180 Last Updated: 11 June, 2024