-
Notifications
You must be signed in to change notification settings - Fork 679
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
MySQL JSON field type with string should decode in python3 #272
Comments
According to rfc7159 : https://tools.ietf.org/html/rfc7159#section-8.1
So should decode as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Table:
CREATE TABLE test (id int, value json);
With data:
But event's values in python3 is :
{"id":1,"value":{b"string1":b"string2"}
And when use
json.dumps
will raiseTypeError: keys must be a string
The text was updated successfully, but these errors were encountered: