JsonLayoutOptions

JsonLayoutOptions class

Represents the options of json layout type.

class JsonLayoutOptions;

Constructors

NameDescription
constructor()Constructor of loading JSON layout options.

Properties

PropertyTypeDescription
arrayAsTablebooleanProcesses Array as table.
ignoreNullbooleanIndicates whether ignoring null value.
ignoreTitlebooleanIngores titles of attributes
convertNumericOrDatebooleanIndicates whether converting the string in json to numeric or date value.
numberFormatstringGets and sets the format of numeric value.
dateFormatstringGets and sets the format of date value.
titleStyleStyleGets and sets the style of the title.
keptSchemabooleanIndicates whether keeping schema of this json.

constructor()

Constructor of loading JSON layout options.

constructor();

arrayAsTable

Processes Array as table.

arrayAsTable : boolean;

ignoreNull

Indicates whether ignoring null value.

ignoreNull : boolean;

ignoreTitle

Ingores titles of attributes

ignoreTitle : boolean;

convertNumericOrDate

Indicates whether converting the string in json to numeric or date value.

convertNumericOrDate : boolean;

numberFormat

Gets and sets the format of numeric value.

numberFormat : string;

dateFormat

Gets and sets the format of date value.

dateFormat : string;

titleStyle

Gets and sets the style of the title.

titleStyle : Style;

keptSchema

Indicates whether keeping schema of this json.

keptSchema : boolean;

Remarks

Sometimes we will save the file to JSON after loading JSON file.