Easily read and write JSON files! Note that version 1.0.0 doesnt support writing to JSON with already existing data. Version 1.0.0 just removes all data before writing.( All data is erased when you start the file with the "hlxjson.start(filename)" function.)
Project description
HLXJSON
Easily read and write JSON files in Python! examples:
import hlxjson
hlxjson.start("test.json")
hlxjson.add("test.json","testname","testval")
hlxjson.divstart("test.json","testdiv")
hlxjson.add("test.json","testname","testval")
hlxjson.divend("test.json","testdiv")
hlxjson.add("test.json","testnameAfterADiv","testval")
hlxjson.end("test.json")
hlxjson.readdiv("test.json","testdiv","testnameindiv")
hlxjson.read("test.json","testproperty")
meanwhile test.json :
{
"testname":"testval",
"testdiv":{
"testnameindiv":"testvalindiv",
},
"testnameAfterADiv":"testvalafterduv",
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
HLXJSON-1.1.0.tar.gz
(2.8 kB
view hashes)