Skip to main content

JSON format handler on the json built-in module

Project description

jSona

JSON Format handler with bulit-in json module

Error tolerances are added to bulit-in json module.

Because those kind of works are really annoying.


Installation

pip3 install jSona-master/

Projects

jSona have two major functions

  • load : Loads data from json format file.

  • save : Saves to json format file.

  • loads, dumps : Equals loads and dumps functions in json module.


Examples

  • Script
# from jSona import save, load
from pprint import pprint as pp
from jSona import save, load

sample_data = {'hello':['world', 'everyone~']}
save("sample.json", sample_data, cry=True)

load_data = load("sample.json", cry=True)
pp(load_data)
  • Outputs
SAVE SUCCESS TO [ sample.json ]
LOAD SUCCESS FROM [ sample.json ]
{'hello': ['world', 'everyone~']}

Notices

Unauthorized distribution and commercial use are strictly prohibited without the permission of the original author and the related module.

Project details


Release history Release notifications | RSS feed

This version

3.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jSona-3.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

jSona-3.1-py3-none-any.whl (3.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