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 JSONLibGem 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"
JSONLibGem.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"
JSONLibGem.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.4.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.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: JSONLibGem-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f9ad7d39634239f3a074b9e8c681cd092428ef37c5501246a193d240dc74d211
MD5 de9b8635a45bb02ca8194d20985eaaf9
BLAKE2b-256 1362bf056063f35eb27052a1770daa4d1977f53544ad3e93c81eb9cd950d98fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: JSONLibGem-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 80c30e3fa4568ec78b820a0e6f952acaa8708ca07e6cdeb232f1ab94616a132b
MD5 d9416a443f3fdda1d302d3aa706f6692
BLAKE2b-256 74a5c3159da0b3c0ed67a3533872bd0d79e6b28a38ce2c0c1d02733cae2846fc

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