JsonUtility

JsonUtility class

Represents the utility class of processing json.

class JsonUtility;

Constructors

NameDescription
constructor()Default Constructor.

Methods

MethodDescription
static importData(string, Cells, number, number, JsonLayoutOptions)Import the json string.
static exportRangeToJson(Range, JsonSaveOptions)Exporting the range to json file.

constructor()

Default Constructor.

constructor();

importData(string, Cells, number, number, JsonLayoutOptions)

Import the json string.

static importData(json: string, cells: Cells, row: number, column: number, option: JsonLayoutOptions) : number[];

Parameters:

ParameterTypeDescription
jsonstringThe json string.
cellsCellsThe Cells.
rownumberThe row index.
columnnumberThe column index.
optionJsonLayoutOptionsThe options of import json string.

Returns

number[]

exportRangeToJson(Range, JsonSaveOptions)

Exporting the range to json file.

static exportRangeToJson(range: Range, options: JsonSaveOptions) : string;

Parameters:

ParameterTypeDescription
rangeRangeThe range.
optionsJsonSaveOptionsThe options of exporting.

Returns

The json string value.