Skip to content

Instantly share code, notes, and snippets.

@PingjunChen
Last active June 7, 2018 19:17
Show Gist options
  • Save PingjunChen/5b6186efacec7f97a467f03edddc0a64 to your computer and use it in GitHub Desktop.
Save PingjunChen/5b6186efacec7f97a467f03edddc0a64 to your computer and use it in GitHub Desktop.
Json Load and Save
# -*- 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