4fdaeff758
There are some differences in the behaviour of json and msgpack serializers. Msgpack throws TypeError when it doesn't know how to handle an object. Json throws ValueError instead. Regarding the fact that serialization should be configurable (in particular, serializers should have similar behaviour; right now transition from json to msgpack leads to errors and fails) this patch proposes to raise ValueError instead of TypeError on failures so that libraries already using jsonutils would be able to also work with msgpackutils. Change-Id: I3d21b7d136e5a426a3c4a70a953c82ddcd6ef5af |
||
---|---|---|
doc/source | ||
oslo_serialization | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
babel.cfg | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
oslo.serialization
The oslo.serialization library provides support for representing objects in transmittable and storable formats, such as Base64, JSON and MessagePack.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/oslo.serialization
- Source: http://git.openstack.org/cgit/openstack/oslo.serialization
- Bugs: http://bugs.launchpad.net/oslo.serialization