Skip to main content

This is the simplest module for serializing and deserializing json.

Project description

JSONLibGem

What is this?

This module allow you to serialize and deserialize json files.


Using

Using the library is as simple and convenient as possible:

Let's import it first: First, import everything from the library (use the from JSONLib import * construct).

Examples:

Serialize a JSON-formatted string into a new JSON file

json_data = '{"name": "Ivan", "surname": "Ivanov", "age": 11, "can_eat_potato": false, "parts_of_body": ["Head","Potato"]}'
output_name = "output_data.json"
JSONLib.serialize_json(json_data, output=output_name)

Deserialize a JSON-formatted string into a new Python object

json_data = '{"name": "Ivan", "surname": "Ivanov", "age": 11, "can_eat_potato": false, "parts_of_body": ["Head","Potato"]}'
output_name = "output_data.json"
JSONLib.deserialize_json(json_data, output=output_name)

Some functions of this module

You can print Serialized and Deserialized strings. To do this, you do not have to specify the argument "output".


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

JSONLibGem-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

JSONLibGem-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file JSONLibGem-0.0.1.tar.gz.

File metadata

  • Download URL: JSONLibGem-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for JSONLibGem-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bf195abbea9cc8e7a6a5eed9e713692a8c237e5990d0c82542e925f7265f975c
MD5 8ce3c81fae4c3c49ac31f39ea2303a5f
BLAKE2b-256 81a4a7c1b4365624b627967c0b8ed2e20fefaf7dac8b610b6ed3370126a39938

See more details on using hashes here.

File details

Details for the file JSONLibGem-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: JSONLibGem-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for JSONLibGem-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adf32dc18bc0dc3d4d003ec124bd5bfd19dcbcf8fd5d97f83d3472a5583b693f
MD5 7cfc4a5595715b316af763c49c7bc66e
BLAKE2b-256 20f47c06690d4ee18174095b4e823b28c6be221fa164b7fc6d7dc23279add9c7

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