update json file,json_file.write('{}\n'.format(json.dumps(data)))