Search found 2 matches

by Karebo
Tue Oct 05, 2021 11:22 am
Forum: General Discussion and Questions
Topic: json.load
Replies: 2
Views: 2099

Re: json.load

Thanks. My live will be better now :D
by Karebo
Tue Oct 05, 2021 7:27 am
Forum: General Discussion and Questions
Topic: json.load
Replies: 2
Views: 2099

json.load

json.loads(x) works, but json.load(frr) doesn't work. Data are the same. Any idea? >>> frr = open("jsdata.json", "r") >>> x = frr.read() >>> json.loads(x) {'value_d1': [0, 1, 2, 3, 4, 5, 6, 7, 8], 'dtime': '00.00.00 00:00', 'value_d2': [0, 1, 2, 3, 4, 5, 6, 7, 8], 'device_2': 'Humidity', 'device_1':...