-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object-based JSON serialization #103
Conversation
Test PASSed. |
Fixes #103. |
retest this please |
Test FAILed. |
Hmmm, doesn't like the requirements file in tox?
|
Screw it, I'll put pyyaml it in the requirements.txt - tox and other stuff is already in there. |
Test FAILed. |
Test FAILed. |
retest this please |
Test PASSed. |
Object-based JSON serialization
Provide full serialization of JSON objects. This change introduces a static
from_json
method for each message class, and ato_json
method for each message class. This enables serializing and deserializing full objects to and from JSON. It's not super optimal on deserialization in that it parses out the JSON and then parses it again through construct, but that can be fixed up later (it wasn't trivial to reconstitute the construct containering). Tests were added around the JSON serialization and deserialization via raw_json outputs in the test YAML. Sub-objects do not have JSON serdes methods./cc @mookerji