# sm.json.parseJsonString

Parses a json string to lua table.

**Kind:** Function

**Environments:** Game, Terrain

## Game

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

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

**Parameters:**

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

**Returns:**

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

## Terrain

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

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

**Parameters:**

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

**Returns:**

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