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

invalid json and bindata repr #499

Open
devsnek opened this issue Apr 17, 2021 · 0 comments
Open

invalid json and bindata repr #499

devsnek opened this issue Apr 17, 2021 · 0 comments

Comments

@devsnek
Copy link

devsnek commented Apr 17, 2021

I've discovered a couple of issues while working with the json api.

  • Sometimes bindata is an array of numbers instead of a string. This makes consuming the data a painstaking task. Luckily, string sequences in json can contain unicode escapes, so this can actually be safely represented as a string instead of an array of numbers.

  • Sometimes there are invalid escape sequences in bindata strings (for example \199). No conformant json parser will accept it. Luckily, the same unicode escape sequences mentioned in the above point can be used here.

I would normally try to contribute something like this myself, but the portability requirements of this code are well beyond my expertise 😅

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