> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblMultiplayerSessionSetCustomPropertyJson

> XblMultiplayerSessionSetCustomPropertyJson

Set a session custom property to the specified JSON string.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerSessionSetCustomPropertyJson(  
         XblMultiplayerSessionHandle handle,  
         const char* name,  
         const char* valueJson  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSessionHandle](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle.md)

Handle to the multiplayer session.

*name*   \_In\_z\_\
Type: char\*

The name of the property to set.

*valueJson*   \_In\_z\_\
Type: char\*

The JSON value to assign to the property. This must be a valid JSON string. Examples include `"\"JsonString\""`, `"{\"name\":\"A\"}"`, or `"true"`.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** multiplayer\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[multiplayer\_c](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

- [multiplayer_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)
- [XblMultiplayerSessionCurrentUserSetCustomPropertyJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentusersetcustompropertyjson.md)
- [XblMultiplayerManagerLobbySessionPropertiesJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionpropertiesjson.md)
- [XblMultiplayerManagerGameSessionPropertiesJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionpropertiesjson.md)
- [XblMultiplayerManagerGameSessionSetProperties](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionsetproperties.md)
