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