## ExportToJson(string) {#exporttojson_1}

Gets JSON string from memory data,set the output filename in the JSON.

```csharp
public string ExportToJson(string filename)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filename | String | Specifies the file name in the JSON. If set to null,the default filename is: book1.. |

### Return Value

The JSON string.

### See Also

* class [GridJsWorkbook](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)

---

## ExportToJson() {#exporttojson}

Gets JSON string from memory data, the default filename in the JSON is: book1.

```csharp
public string ExportToJson()
```

### Return Value

The JSON string.

### See Also

* class [GridJsWorkbook](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)


