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.6.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
json2-0.6.0-py3-none-any.whl
(2.7 kB
view hashes)