# GuiInterface.createGridFromJson

Creats a grid from a table/json

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:createGridFromJson( gridName, index )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#creategridfromjson)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `gridName` | string | The name of the grid |
| `index` | table | Grid data table \{ type=string, layout=string, itemWidth=integer, itemHeight=integer, itemCount=integer \} |
