Skip to main content

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


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)

Uploaded Source

Built Distribution

HLXJSON-1.1.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page