You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
311 B

# -*- coding: utf-8 -*-
import json
data = {"Fullscreen": True, "pos_x": 0.3462345254}
data_json = json.dumps(data, indent=12)
print((data_json))
file_obj = open("test1.json", "rw+")
json.dump(data, file_obj)
file_obj.close()
file_obj = open("test1.json", "r")
read_data = json.load(file_obj)
print read_data