json parse json file code example
Example 1: save json to file
import json
data = {}
with open('data.txt', 'w') as outfile:
json.dump(data, outfile)
Example 2: javascript parse json
var jsonPerson = '{"first_name":"billy", "age":23}';
var personObject = JSON.parse(jsonPerson); //parse json string into JS object