Skip to content

Instantly share code, notes, and snippets.

@knil-sama
Last active December 29, 2017 22:51
Show Gist options
  • Select an option

  • Save knil-sama/f088088cd111b4726e9d4bad7420de3c to your computer and use it in GitHub Desktop.

Select an option

Save knil-sama/f088088cd111b4726e9d4bad7420de3c to your computer and use it in GitHub Desktop.
def unjsonify(data) -> dict:
"""
Convert binary to json
Args:
data: Binary json returned by Flask
Returns:
str:
"""
return json.loads(data.decode('utf-8'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment