Horje
create json list of object to file python Code Example
create json list of object to file python
import json

aList = [{"a":54, "b":87}, {"c":81, "d":63}, {"e":17, "f":39}]
jsonString = json.dumps(aList)
jsonFile = open("data.json", "w")
jsonFile.write(jsonString)
jsonFile.close()




Python

Related
dynamic tiling programming Code Example dynamic tiling programming Code Example
remove element from a list python Code Example remove element from a list python Code Example
# keys in python Code Example # keys in python Code Example
sub function python Code Example sub function python Code Example
how to wirte something 100 times with python Code Example how to wirte something 100 times with python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7