# Data object is not a JSON object

**URL:** <https://forum.heroiclabs.com/t/data-object-is-not-a-json-object/3055>\
**Category:** Client Libraries\
**Tags:** sdk-javascript\
**Created:** [September 16, 2022, 7:31am UTC](https://forum.heroiclabs.com/t/data-object-is-not-a-json-object/3055 "2022-09-16T07:31:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott4dev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/scott4dev/32/1319_2.png) [@scott4dev](https://forum.heroiclabs.com/u/scott4dev)\
**Post date:** [September 16, 2022, 7:31am UTC](https://forum.heroiclabs.com/t/data-object-is-not-a-json-object/3055/1 "2022-09-16T07:31:05Z")

</div>

As PoC I’m trying to write a tic-tac-toe client with React.  
For the server I’m using nakama-project-template as is, not changes

**Player 1** : is your [svelte/phaserjs client](https://github.com/heroiclabs/xoxo-phaserjs) and the data property of the OnMatchData messages is JSON object

**Player 2:** uses my javascript client (a React app). In this client tho the data property of the OnMatchData messages is **not a deserialised in JSON but it’s a Uint8Array()**

In my React code I use the nakama.js client (copied from [xoxo-phaserjs/nakama.js at main · heroiclabs/xoxo-phaserjs · GitHub](https://github.com/heroiclabs/xoxo-phaserjs/blob/main/src/nakama.js)) Any idea of what is wrong in my client code?

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [September 16, 2022, 3:31pm UTC](https://forum.heroiclabs.com/t/data-object-is-not-a-json-object/3055/2 "2022-09-16T15:31:16Z")

</div>

Hey @scott4dev UInt8Array is the correct data structure – the phaserjs client needs to be updated to the most recent release.

---

<div class="post-metadata">

**Author:** ![scott4dev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/scott4dev/32/1319_2.png) [@scott4dev](https://forum.heroiclabs.com/u/scott4dev)\
**Post date:** [September 16, 2022, 3:54pm UTC](https://forum.heroiclabs.com/t/data-object-is-not-a-json-object/3055/3 "2022-09-16T15:54:28Z")

</div>

@lugehorsam my tic-tac-toe client is pure a React application (no PhaserJS)

I solved the issue by downgrading, in my tic-tac-toe react app, @heroiclabs/nakama-js from the latest (2.4.1) version to the same one used in [xoxo-phaserjs](https://github.com/heroiclabs/xoxo-phaserjs) (2.1.5)
