> ## 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.

# MatchTicket (JSON)

> MatchTicket (JSON)

# MatchTicket (JSON)

プレイヤーがマルチプレイヤー セッション ディレクトリ (MPSD) を介して他のプレイヤーを探すために使用するマッチ チケットを表す JSON オブジェクト。

MatchTicket JSON オブジェクトの仕様は次のとおりです。

| メンバー | 型 | 説明 |
| - | - | - |
| serviceConfig | GUID | セッションのサービス構成識別子 (SCID)。 |
| hopperName | string | このチケットを配置するホッパーの名前。 |
| giveUpDuration | 32 ビット符号付き整数 | 最大待機時間 (整数の秒数)。 |
| preserveSession | enumeration | マッチ先セッションとしてセッションを再利用する必要があるかどうかを示す値。指定可能な値は "always" または "never" です。 |
| ticketSessionRef | MultiplayerSessionReference | プレイヤーまたはグループが現在プレイしているセッションの **MultiplayerSessionReference** オブジェクト。このメンバーは常に必須です。 |
| ticketAttributes | オブジェクトの配列 | プレイヤーのチケットに関する、ユーザー提供の属性と値のコレクション。 |
| players | オブジェクトの配列 | player オブジェクトのコレクション。それぞれにユーザー提供の属性のプロパティ バッグが含まれます。 |

## サンプル JSON 構文

```json theme={null}
{
        "serviceConfig": "07617C5B-3423-4505-B6C6-10A16E1E5DDB",
        "hopperName": "TestHopper",
        "giveUpDuration": 10,
        "preserveSession": "never",
        "ticketSessionRef": {
        "scid": "AFFEABDF-0000-0000-0000-000000000001",
        "templateName": "TestTemplate",
        "sessionName": "5E551041-0000-0000-0000-000000000001"
    },
    "ticketAttributes": {
        "desiredMap": "Test Map",
        "desiredGameType": "Test GameType"
    },
    "players": [
        {
            "xuid": 123412345123,
            "playerAttributes": {
                "skill": 5,
                "ageRange": "teenager"
            }
        },
        {
          "xuid": 123412345124,
          "playerAttributes": {
              "skill": 15,
              "ageRange": "twenty-something"
          }
        }
      ]
    }
  
    
```

## 関連項目

##### 親

[JavaScript Object Notation (JSON) オブジェクト リファレンス](https://devdocs.xbox.com/ja-jp/reference/live/rest/json/atoc-xboxlivews-reference-json)


## Related topics

- [Using SmartMatch matchmaking](https://devdocs.xbox.com/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-how-tos.md)
- [Matchmaking overview](https://devdocs.xbox.com/services/xbox-services/multiplayer/matchmaking/live-matchmaking-overview.md)
- [Multiplayer tasks](https://devdocs.xbox.com/services/xbox-services/multiplayer/mpsd/how-to/live-mpsd-how-tos.md)
- [Multiplayer concepts overview](https://devdocs.xbox.com/services/xbox-services/multiplayer/concepts/live-multiplayer-concepts.md)
- [Matchmaking quickstart](https://devdocs.xbox.com/services/playfab/multiplayer/matchmaking/quickstart.md)
