ConfigurationRule.fromJson Method

Parent Object: ConfigurationRule

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/ConfigurationRules/ConfigurationRule.h>

Description

Creates a ConfigurationRule by parsing a JSON object string in the wire schema. Useful for round-tripping a rule through external tooling (e.g. an MCP agent) that produced JSON directly. Unknown block types in the body are preserved as ConfigurationRuleRawStatement entries.

Syntax

This is a static method.
returnValue = adsk.fusion.ConfigurationRule.fromJson(ruleJson)
This is a static method.
#include <Fusion/ConfigurationRules/ConfigurationRule.h>

returnValue = adsk::fusion::ConfigurationRule::fromJson(ruleJson);
This is a static method.
returnValue = adsk.fusion.ConfigurationRule.fromJson(ruleJson);

Return Value

Type Description
ConfigurationRule The constructed ConfigurationRule.

Parameters

Name Type Description
ruleJson string A JSON object string representing the rule.

Version

Introduced in version October 2026