# JsonWidget.setUserString

Sets a custom string on a json widget that can be fetched using the key.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
jsonWidget:setUserString( key, value )
```

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

**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. |
| `value` | string | The value being written onto the widget. |
