Last active
June 7, 2018 19:17
-
-
Save PingjunChen/5b6186efacec7f97a467f03edddc0a64 to your computer and use it in GitHub Desktop.
Json Load and Save
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
# -*- coding: utf-8 -*- | |
__author__ = "Pingjun Chen" | |
__email__ = "chenpingjun@gmx.com" | |
import os, sys, pdb | |
import json | |
# load json file | |
json_in = json.load(open('***.json')) | |
# save to json | |
with open('***.json', 'w') as outfile: | |
json.dump(dict, outfile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment