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