Created
July 31, 2019 04:09
-
-
Save sin-tanaka/a253cf488e0ae543cd644ab30fe0acd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64, json | |
json_str = '{"foo": "bar"}' | |
json_dict = json.loads(base64.b64decode(json_str).decode('utf-8')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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