You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on a project where I serialize JSON objects using the php library msgpack-php, but when I try to deserialize these objects using the javascript library msgpack-javascript, my integers are truncated.
Your number is bigger than Number.MAX_SAFE_INTEGER and can therefore not be processed as a JavaScript number.
You may need to have a look at the JavaScripts BigInt type and the DecoderOption useBigInt64.
Hi,
I am currently working on a project where I serialize JSON objects using the php library
msgpack-php
, but when I try to deserialize these objects using the javascript librarymsgpack-javascript
, my integers are truncated.PHP :
JS :
Result :
As you can see the last three digits of my integer are set to
0
.This seems to be an interoperability problem between the php library and Node.js
The text was updated successfully, but these errors were encountered: