Need help with NUI Callbacks in JavaScript

So I made this script, where I try to get the Playerstats from a MongoDB Database and send it to a HUD, for the data to display. When I try to invoke the callback, everything works fine. It’s triggering my client.js that triggers the server.js an everything works fine. But I cant cb() the returned Playerstats to the NUI. If I try to cb() a specific data, everything works just fine, but not if I cb() the Playerstats. If I try to log my data to the console by the client.js, the data is printed perfectly fine, as shown in the reference images.

My client.js:
Screenshot_182

My server.js

My HUD function:

image

Whats logged by the Client:

image

So for those who have the same issue:

I kinda “fixed” it, by assigning a new object to the playerstats object… my client function now looks like this:

image