-
Notifications
You must be signed in to change notification settings - Fork 40
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
Decoding floats and ints wrapped in quotes #49
Comments
We were considering adding a codec that would string encode in the way you describe, wrapping a typed codec, i.e., Neither solution would work in your example, where the quoted values are both numbers and strings. The If you know the format of these arrays, for example |
I'm working with an API that returns floats and ints wrapped in quotes. A typical response is included below. In the examples (and in canonical JSON afaik) ints and floats aren't quote wrapped. I get an
"invalid floating point number"
error, which I guess is expected given that. Is there a way to add an inner encoder that strips the quotes to get them ready for parsing by the double-conversion lib?["buy", "1", "3"]
The text was updated successfully, but these errors were encountered: