A Python Package to Encode/Decode some common file formats to json
Project description
ZnJSON
Package to Encode/Decode some common file formats to json
Available via pip install znjson
In comparison to pickle
this allows having readable json files combined with some serialized data.
Example
import numpy as np
import json
import znjson
znjson.register(
znjson.converter.NumpyConverter
)
data = json.dumps({"data": np.arange(9)}, cls=znjson.ZnEncoder)
_ = json.loads(data, cls=znjson.ZnDecoder)
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
znjson-0.0.3.tar.gz
(8.4 kB
view hashes)
Built Distribution
znjson-0.0.3-py3-none-any.whl
(10.6 kB
view hashes)