Add convenience function to pythons default json implementation
Project description
Json2
Purpose
Python package which just wraps the default python json but with.
Additonally it can hanlde numpy arrays and torch tensors without throwing an exception.
json2.load_file
and json2.save_file
Installation
pip install json2
Usage
import json2
a = json2.load_file(r'/home/user/myjson.json')
json2.dump_file(r'/home/user/myjson.json', a)
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
json2-0.9.0.tar.gz
(2.3 kB
view details)
Built Distribution
json2-0.9.0-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file json2-0.9.0.tar.gz
.
File metadata
- Download URL: json2-0.9.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c7ac7e9475d8758e05f19b34b1defe9df8a8fe21e8818895c7b357a6e71c9d |
|
MD5 | a273e04da360b38598f4e820e03d96ba |
|
BLAKE2b-256 | 0920022ec342d25c4c020ec62cf05301d605a37c0e3996f02be4da7c115fd848 |
File details
Details for the file json2-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: json2-0.9.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6273489f58fe7676df9edf6066ece2dadc015b0d6626ba8e4f1827b2c112ba |
|
MD5 | 441cf89d7b3fe73ae02f981e9ddb9742 |
|
BLAKE2b-256 | 166bc2698a3c211444e4238208fa4127ebe4ffae0a0ad97d85873b0cd4641b7e |