# sm.json.fileExists

Checks if a json file exists at the input path

**Kind:** Function

**Environments:** Game, Terrain

## Game

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

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| boolean | Return true if the file exists. |

## Terrain

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

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| boolean | Return true if the file exists. |
