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

# Player (JSON)

> Player (JSON)

# Player (JSON)

Contains data for a player in a game session.

<a id="ID4EN" />

## Player

The Player object has the following specification.

| Member               | Type                            | Description                                                                                                                |
| -------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| customData           | array of 8-bit unsigned integer | 1024 bytes of Base64 encoded game-specific player data. This value is opaque to the server.                                |
| gamertag             | string                          | Gamertag—a maximum of 15 characters—of the player. The client should use this value in the UI when identifying the player. |
| isCurrentlyInSession | Boolean value                   | Indicates if the player is currently in the session or left the session.                                                   |
| seatIndex            | 32-bit signed integer           | The index of the player in the session.                                                                                    |
| xuid                 | 64-bit unsigned integer         | The XBOX User ID (XUID) of the player.                                                                                     |

<a id="ID4E3C" />

## Sample JSON syntax

```json theme={null}
{
    "xuid": 2533274790412952,
    "gamertag":"MyTestUser",
    "seatindex": 3
    "customData":"AIHJ2?iE?/jiKE!l5S=T..."
    "isCurrentlyInSession":"true"
}
    
```

<a id="ID4EFD" />

## See also

<a id="ID4EHD" />

##### Parent

[JavaScript Object Notation (JSON) Object Reference](/reference/live/rest/json/atoc-xboxlivews-reference-json)

<a id="ID4ERD" />

##### Reference

[GameSession (JSON)](/reference/live/rest/json/json-gamesession)


## Related topics

- [player_authenticated](/services/playfab/api-references/events/PlayerIdentity/player-authenticated.md)
- [MatchUser.LocalUserJsonAttributesJSON](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchUser/LocalUserJsonAttributesJSON.md)
- [PlayFab GDPR - Export Player Data](/services/playfab/data-analytics/privacy-compliance/gdpr-exporting-player-data.md)
- [Player Encryption Services](/services/playfab/identity/player-identity/encryption/player-encryption-services.md)
- [player_triggered_action_executed_function](/services/playfab/api-references/events/Functions/player-triggered-action-executed-function.md)
