Created
December 2, 2019 14:53
-
-
Save jimkang/ad7edcd07d0fa4e0cd73aee601dcb79f to your computer and use it in GitHub Desktop.
Because I always forget
This file contains hidden or 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 pickle | |
import json | |
data = pickle.load(open('file.pkl', 'rb')) | |
out_file = open("out.json", "w") | |
out_file.write(json.dumps(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment