Name | JSONLibGem JSON |
Version |
0.0.4
JSON |
| download |
home_page | |
Summary | This is the simplest module for serializing and deserializing json. |
upload_time | 2024-03-16 20:05:29 |
maintainer | |
docs_url | None |
author | Gemion |
requires_python | >=3.6 |
license | |
keywords |
json
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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".
----------
Raw data
{
"_id": null,
"home_page": "",
"name": "JSONLibGem",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "json",
"author": "Gemion",
"author_email": "ms.m4x@yandex.ru",
"download_url": "https://files.pythonhosted.org/packages/13/62/bf056063f35eb27052a1770daa4d1977f53544ad3e93c81eb9cd950d98fb/JSONLibGem-0.0.4.tar.gz",
"platform": null,
"description": "# JSONLibGem #\r\n\r\n## What is this? ##\r\nThis module allow you to serialize and deserialize json files.\r\n\r\n----------\r\n\r\n\r\n# Using #\r\n\r\n\r\nUsing the library is as simple and convenient as possible:\r\n\r\nLet's import it first:\r\nFirst, import everything from the library (use the `from JSONLibGem import *` construct).\r\n\r\nExamples:\r\n\r\n### Serialize a JSON-formatted string into a new JSON file ###\r\n json_data = '{\"name\": \"Ivan\", \"surname\": \"Ivanov\", \"age\": 11, \"can_eat_potato\": false, \"parts_of_body\": [\"Head\",\"Potato\"]}'\r\n output_name = \"output_data.json\"\r\n JSONLibGem.serialize_json(json_data, output=output_name)\r\n\r\n### Deserialize a JSON-formatted string into a new Python object ###\r\n json_data = '{\"name\": \"Ivan\", \"surname\": \"Ivanov\", \"age\": 11, \"can_eat_potato\": false, \"parts_of_body\": [\"Head\",\"Potato\"]}'\r\n output_name = \"output_data.json\"\r\n JSONLibGem.deserialize_json(json_data, output=output_name)\r\n\r\n### Some functions of this module ###\r\n\r\nYou can print Serialized and Deserialized strings. To do this, you do not have to specify the argument \"output\".\r\n\r\n\r\n \r\n\r\n\r\n----------\r\n",
"bugtrack_url": null,
"license": "",
"summary": "This is the simplest module for serializing and deserializing json.",
"version": "0.0.4",
"project_urls": null,
"split_keywords": [
"json"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "74a5c3159da0b3c0ed67a3533872bd0d79e6b28a38ce2c0c1d02733cae2846fc",
"md5": "d9416a443f3fdda1d302d3aa706f6692",
"sha256": "80c30e3fa4568ec78b820a0e6f952acaa8708ca07e6cdeb232f1ab94616a132b"
},
"downloads": -1,
"filename": "JSONLibGem-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d9416a443f3fdda1d302d3aa706f6692",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2886,
"upload_time": "2024-03-16T20:05:26",
"upload_time_iso_8601": "2024-03-16T20:05:26.493336Z",
"url": "https://files.pythonhosted.org/packages/74/a5/c3159da0b3c0ed67a3533872bd0d79e6b28a38ce2c0c1d02733cae2846fc/JSONLibGem-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1362bf056063f35eb27052a1770daa4d1977f53544ad3e93c81eb9cd950d98fb",
"md5": "de9b8635a45bb02ca8194d20985eaaf9",
"sha256": "f9ad7d39634239f3a074b9e8c681cd092428ef37c5501246a193d240dc74d211"
},
"downloads": -1,
"filename": "JSONLibGem-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "de9b8635a45bb02ca8194d20985eaaf9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2442,
"upload_time": "2024-03-16T20:05:29",
"upload_time_iso_8601": "2024-03-16T20:05:29.156032Z",
"url": "https://files.pythonhosted.org/packages/13/62/bf056063f35eb27052a1770daa4d1977f53544ad3e93c81eb9cd950d98fb/JSONLibGem-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-16 20:05:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "jsonlibgem"
}