# sm.json.open

Opens a json file and parses to Lua table.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.json.open( path )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.json.md#open)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `path` | string | The json file path. |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table. |

## Terrain

``` { .lua .api-signature }
sm.json.open( path )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.json.md#open)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `path` | string | The json file path. |

**Returns:**

| Type | Description |
| --- | --- |
| table | The table. |
