# MessagePack for Serialization

**URL:** https://forum.heroiclabs.com/t/messagepack-for-serialization/421
**Category:** Game Design
**Created:** [December 30, 2019, 8:17pm UTC](https://forum.heroiclabs.com/t/messagepack-for-serialization/421 "2019-12-30T20:17:21Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Mohammed](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Mohammed](https://forum.heroiclabs.com/u/Mohammed)
#### Post date: [December 31, 2019, 4:51am UTC](https://forum.heroiclabs.com/t/messagepack-for-serialization/421/3 "2019-12-31T04:51:44Z")

</div>

@novabyte  
I had some issues with TinyJson ([Nakama.TinyJson Parsing High Numbers Problem - #2 by novabyte](https://forum.heroiclabs.com/t/nakama-tinyjson-parsing-high-numbers-problem/420/2))  
So I was reading about methods to serialize data and MessagePack had a lot of benefits like speed, performance & data size  
So I checked it

There are two options for Lua on the site  
I tried

> **[GitHub - kieselsteini/msgpack: A MessagePack implementation for Lua 5.3/5.4 -...](https://github.com/kieselsteini/msgpack)**
>
> A MessagePack implementation for Lua 5.3/5.4 - msgpack.org\[Lua\] - GitHub - kieselsteini/msgpack: A MessagePack implementation for Lua 5.3/5.4 - msgpack.org\[Lua\]

but I had some issues on line 148

> local length = #elements // 2

Also tried the below link and encountered some problems

> **[src · master · François Perrad / lua-MessagePack · GitLab](https://framagit.org/fperrad/lua-MessagePack/tree/master/src)**
>
> a pure Lua implementation of msgpack.org\[Lua\]

I know this is not an issue related directly to Nakama but I though maybe someone used it and can share his knowledge. Also, maybe a good solution to be considered along with TinyJson.

---

_[View the full topic](https://forum.heroiclabs.com/t/messagepack-for-serialization/421)._
