Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in parsing and reading msgpack-lite #1485

Closed
randydom opened this issue Feb 19, 2019 · 1 comment
Closed

Error in parsing and reading msgpack-lite #1485

randydom opened this issue Feb 19, 2019 · 1 comment

Comments

@randydom
Copy link

Hello , i use this library msgpack-lite to pack json value with my js script and send it to my c++ server , in my server side all message-packed are parsed/unpacked with nlohmann/json , But any message packed by msgpack-lite can't be correctly unpacked by nlohmann/json , meanwhile msgpack-lite can correctly unpack any nlohmann/json packed message .
To give you an example :
consider this nlohmann/json packed message :
[130,163,77,83,71,178,104,101,108,108,111,32,102,114,111,109,32,110,111,100,101,46,106,115,167,85,83,69,82,85,73,68,217,36,101,53,102,51,56,101,53,55,45,56,57,100,57,45,52,50,48,49,45,98,48,101,52,45,100,57,55,52,98,54,48,52,101,97,55,100]

The same json values packed with msgpack-lite gives this :
[130,167,85,83,69,82,85,73,68,217,36,101,53,102,51,56,101,53,55,45,56,57,100,57,45,52,50,48,49,45,98,48,101,52,45,100,57,55,52,98,54,48,52,101,97,55,100,163,77,83,71,178,104,101,108,108,111,32,102,114,111,109,32,110,111,100,101,46,106,115]

And this latter will not give me the correct unpacked values .
please is there any fix or suggestion to this .
thank you

@randydom
Copy link
Author

Thank you , fixed the issue was in my server implementation .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant