JsonUtility
Contents
[
Hide
]JsonUtility class
Represents the utility class of processing json.
class JsonUtility;
Constructors
| Constructor | Description |
|---|---|
| constructor() | Default Constructor. |
Methods
| Method | Description |
|---|---|
| isNull() | Checks whether the implementation object is null. |
| 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();
isNull()
Checks whether the implementation object is null.
isNull() : boolean;
importData(string, Cells, number, number, JsonLayoutOptions)
Import the json string.
static importData(json: string, cells: Cells, row: number, column: number, option: JsonLayoutOptions) : number[];
Parameters:
| Parameter | Type | Description |
|---|---|---|
| json | string | The json string. |
| cells | Cells | The Cells. |
| row | number | The row index. |
| column | number | The column index. |
| option | JsonLayoutOptions | The options of import json string. |
Returns
number[]
exportRangeToJson(Range, JsonSaveOptions)
Exporting the range to json file.
static exportRangeToJson(range: Range, options: JsonSaveOptions) : string;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| range | Range | The range. |
| options | JsonSaveOptions | The options of exporting. |
Returns
The json string value.