Skip to main content

Extendable json encode/decode library.

Project description

Documentation Status https://github.com/MacHu-GWU/superjson-project/workflows/CI/badge.svg https://codecov.io/gh/MacHu-GWU/superjson-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/superjson.svg https://img.shields.io/pypi/l/superjson.svg https://img.shields.io/pypi/pyversions/superjson.svg PyPI - Downloads https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to superjson Documentation

Features:

  1. Support for date, datetime, set, OrderedDict, deque, that the original json module can not serialize.
  2. Easy to extend to support any custom data type, SEE HOW.
  3. Allow // double slash started comments, # Pound key started comments style comment in json file (Good for human/machine readable config file).
  4. Use .gz for file extension, data will be automatically compressed.
  5. Atomic Write is ensured, operation of overwriting an existing json file is atomic.

Click HERE for full documentation.

Install

superjson is released on PyPI, so all you need is:

$ pip install superjson

To upgrade to latest version:

$ pip install --upgrade superjson

Project details


Download files

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

Files for superjson, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size superjson-1.0.1-py2.py3-none-any.whl (49.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size superjson-1.0.1.tar.gz (45.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page