# JsonGui.getWidget

Returns a JsonWidget. Nil if no widget was found with the name

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
jsonGui:getWidget( widgetName )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [JsonGui](../Game-Script-Environment/Userdata/JsonGui.md) | The gui. |
| `widgetName` | string | The name of the widget. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `widget` | [JsonWidget](../Game-Script-Environment/Userdata/JsonWidget.md) | The found widget in the JsonGui. |
