Skip to content

fixing problem with stdlib json - #6

Open
newearthmartin wants to merge 1 commit into
fulfilio:developfrom
newearthmartin:json_serializable
Open

fixing problem with stdlib json#6
newearthmartin wants to merge 1 commit into
fulfilio:developfrom
newearthmartin:json_serializable

Conversation

@newearthmartin

Copy link
Copy Markdown
Contributor

Translator.texts_as_json encoded each text to bytes (text.encode('utf8')). This works with simplejson but breaks with stdlib json.

Now I changed it to use str instead of bytes in texts_as_json so the request body is JSON-serializable independent of the json library.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@newearthmartin