You can export an Essbase dimension build or data load rule to JSON format, to view and edit advanced options offline or using REST API.
The JSON is structured into dimensions and fields, and reveals build methods and all other defined load rule settings. You can edit the JSON and re-import it to the cube directory, to apply your changes to a dimension build or data load.
Export a rule file to JSON to view its format. Prerequisite: First, import the Sample.Basic cube from the gallery of application workbooks.
In this exercise, you’ll view the JSON format of a dimension build rule for the Product dimension of Sample.Basic.
On the Applications page, expand the application (Sample).
From the Actions menu, to the right of the cube name (Basic), launch the inspector.
Select the Scripts tab, and then click Rules.
From the Actions menu, to the right of Dim_Product, select Export, and save
Dim_Product.jsonto a local directory.
Use a text editor to examine the details of the Product dimension rule settings.
If you have an advanced editor that recognizes JSON, you can collapse the main sections as shown, to observe the high-level structure of this JSON format rule file.
The dimensions section contains key/value pairs matching dimension settings that are defined in the rule.
For example, you can find the following general settings for the Product dimension represented in the JSON file.
Note:"Existing" specified as the value for any given setting indicates that the designer of the rule has designated no change in preference for that setting (the default is retained).
The fields section is repeated for each field in the rule, and contains key/value pairs matching the settings defined in the rule for each field.
For example, you can find the following field properties for Field 1 of the Product dimension represented in the JSON file.
The dataSource section contains all the settings you can find in the Source Properties area of the rule definition.
For example, the JSON file includes the General properties, and either the File or SQL properties, that are defined in the rule.
The key/pair "studio" : true indicates that this is an Index-based rule rather than a Regular type. An index-based rule is sometimes called a BPM rule. It has different validation requirements. To learn more about this kind of dimension build rule, see Create New Dimension Build Rule.