Metadata-Version: 2.1
Name: znjson
Version: 0.0.3
Summary: A Python Package to Encode/Decode some common file formats to json
Home-page: https://github.com/zincware/ZnJSON
Author: zincwarecode
Author-email: zincwarecode@gmail.com
License: UNKNOWN
Download-URL: https://github.com/zincware/ZnJSON/archive/beta.tar.gz
Keywords: json,zntrack
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

````python
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)
````


