# JsonWidget.getUserString

Gets a string associated with the given key from a json widget.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
jsonWidget:getUserString( key )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `jsonWidget` | [JsonWidget](../Game-Script-Environment/Userdata/JsonWidget.md) | The JsonWidget. |
| `key` | string | The key connected to the value. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `value` | string | The value associated with the key. |
