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
Json Parse Support Binary Data #130
Comments
According to the |
The only widespread and legit way to put arbitrary data (blobs) inside JSON is encoding as Base64 strings. Like this: {
"result": 1,
"data": "TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu"
} Because Base64'd data is just a string in JSON's point of view, you can use YYJSON to read strings from the original JSON, and then convert them from Base64 to data objects some other way. If you're talking about JSON mixed with binary contents, like this hex dump:
You can read it with YYJSON's |
Problem
yyjson cannot parse correctly when a json contains binary data
The text was updated successfully, but these errors were encountered: