Skip to main content

Extensions to standard JSON library with more formats serializable by default

Project description

JSON helpers

by 3elenyi Kaktus

Basically a collection of wrappers for simpler interactions with standard json library.

Usage concept

Since not all objects can be represented as a JSON by default, module make_jsonable adds this possibility via binding JSON encoder to object's __json__ method. Additionally, it binds default serialization of datetime and Path objects. It's a user responsibility to write the real implementation of __json__ method anywhere needed. Simply import the module to the entrypoint file, from which the program starts.

toReadableJSON is a method to write a human friendly version of JSON object.

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

kaktus_json_helpers-4.0.1.tar.gz (93.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaktus_json_helpers-4.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file kaktus_json_helpers-4.0.1.tar.gz.

File metadata

  • Download URL: kaktus_json_helpers-4.0.1.tar.gz
  • Upload date:
  • Size: 93.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.12

File hashes

Hashes for kaktus_json_helpers-4.0.1.tar.gz
Algorithm Hash digest
SHA256 26915b77ccdcca0d7a3f6a5267f8fdfc82d4b3c2ef824ca5830db36522b17d1e
MD5 4f4290938147cfb8e88a70e1c98afa79
BLAKE2b-256 0aaedc0d78ad41f6f37d83b29f7040f00fb3761653d08bddc533405376c09bca

See more details on using hashes here.

File details

Details for the file kaktus_json_helpers-4.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kaktus_json_helpers-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06b4a145cc3a3727fdf7068fdaf95adb0a9941935953baed959f52cf4af2d54f
MD5 f4c8ce1fe21633f2ade802c11af3b864
BLAKE2b-256 8231339573522a96df821a9a535142c74755510c9e8dc3bfe28d97954ec8ca44

See more details on using hashes here.

Supported by

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