# Sending metadata when joining match with Defold (SOLVED)

**URL:** <https://forum.heroiclabs.com/t/sending-metadata-when-joining-match-with-defold-solved/1435>\
**Category:** Game Design\
**Tags:** server-framework\
**Created:** [March 12, 2021, 3:19pm UTC](https://forum.heroiclabs.com/t/sending-metadata-when-joining-match-with-defold-solved/1435 "2021-03-12T15:19:02Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [March 13, 2021, 11:28am UTC](https://forum.heroiclabs.com/t/sending-metadata-when-joining-match-with-defold-solved/1435/11 "2021-03-13T11:28:25Z")

</div>

@totebo Metadata passed into match join attempt must be a flat JSON object of string keys to string values. In your case the code should not be:

```lua
metadata = {
    equipped_weapon_type = 1
}

```

Instead it should be:

```lua
metadata = {
    equipped_weapon_type = "1"
}

```

This is a constraint of the API because in Protocol Buffers its exposed as a map type:

[nakama-common/realtime.proto at master · heroiclabs/nakama-common · GitHub](https://github.com/heroiclabs/nakama-common/blob/master/rtapi/realtime.proto#L343)

Hope this helps.

---

_[View the full topic](https://forum.heroiclabs.com/t/sending-metadata-when-joining-match-with-defold-solved/1435)._
