Skip to main content

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.8.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

json2-0.8.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page