-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Binary (0x05) data type for BSON to JSON conversion #1668
Comments
There is currently a PR #1662 working on binary data types in JSON. It's not using Base64 strings, but vector of bytes. It should also fit BSON. What do you think? |
To add, the pull request only supports serialization to the 0x00 binary subtype; however, serialization from any binary subtype ought to be supported. Though this requires testing, and the PR is still in development. While this does mean that the library isn't transparent under encoding and decoding, this was selected to simplify the implementation and kick the can down the road a bit. |
The PR is the first step to actually support binary types for CBOR, MessagePack, UBJSON, and BSON. Full support of all BSON subtypes would be the next step, I'm afraid. |
HI |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Binary types were added with #1662. |
If this is now supported, is the documentation outdated? In the doxygen for 3.9 it still says "still unsupported" for binary. |
Good point - I shall have a look. |
Fixed. |
Here is list of supported data types for conversion from BSON to JSON
data types
Would it be possible to add (0x05) binary data type to covert to JSON as Base64 encoded string ?
Best Regards
Marek
The text was updated successfully, but these errors were encountered: