This is the simplest module for serializing and deserializing json.
Reason this release was yanked:
incorrect description
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"
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
Release history Release notifications | RSS feed
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.3.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for JSONLibGem-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a9df23978193442ba9b9c27cd5c75ef449dc4a563a7ba0fb7a0de0dcafc5ba |
|
MD5 | 30b98474885d008880e09a550efa5457 |
|
BLAKE2b-256 | 43d58ee001663dc8c63cc2c7416ebcfc50e541864279f82f6f10456ae8790284 |