# Serializing JavaScript Object Graphs with Python
This Python module serializes and deserializes cyclic object graphs in the [JSOG format](https://github.com/jsog/jsog).
## Source code
The official repository is (https://github.com/jsog/jsog-python).
## Download
Jsog is available in PyPI:
$ pip install jsog
## Usage
This code mimics the standard json python package:
import jsog
string = jsog.dumps(cyclicGraph); cyclicGraph = jsog.loads(string);
It can be used to convert between object graphs directly:
import jsog
jsogStructure = jsog.encode(cyclicGraph); // has { ‘@ref’: ‘ID’ } links instead of cycles cyclicGraph = jsog.decode(jsogStructure);
## Author
Jeff Schnitzer (jeff@infohazard.org)
## License
This software is provided under the [MIT license](http://opensource.org/licenses/MIT)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file jsog-1.0.1.tar.gz.
File metadata
- Download URL: jsog-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3b605213d7d28c150042a0e52e3818ce5976f9eb30225e3512afa10ecf13caa
|
|
| MD5 |
25c5376ea79c90dd1c3aa6c9f9c8eeb9
|
|
| BLAKE2b-256 |
8fdee8a7a5a5fb2e1c27b909757c070eb45c5cfe3cea900bf6de8ada51c35a88
|