Skip to content

Instantly share code, notes, and snippets.

@sin-tanaka
Created July 31, 2019 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sin-tanaka/a253cf488e0ae543cd644ab30fe0acd5 to your computer and use it in GitHub Desktop.
Save sin-tanaka/a253cf488e0ae543cd644ab30fe0acd5 to your computer and use it in GitHub Desktop.
import base64, json
json_str = '{"foo": "bar"}'
json_dict = json.loads(base64.b64decode(json_str).decode('utf-8'))
const jsonStr = '{"foo": "bar"}'
const jsonObj = JSON.parse(Buffer.from(jsonStr, 'base64').toString())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment