diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-05-14 18:18:38 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-05-15 10:46:48 -0400 |
| commit | 654d80b416dc5f413cb791aa838ec8688bf7da44 (patch) | |
| tree | f2566d874a5bb0cac9b78b2c5132165792cd5c43 /tools | |
| parent | e3babb3748b410f685334de65aaecf943a13ec1e (diff) | |
| download | oslo-654d80b416dc5f413cb791aa838ec8688bf7da44.tar.gz oslo-654d80b416dc5f413cb791aa838ec8688bf7da44.tar.xz oslo-654d80b416dc5f413cb791aa838ec8688bf7da44.zip | |
Create openstack.common.jsonutils.
This patch creates a new module, jsonutils. It is based on some code
from nova.utils that is used by nova.rpc. It is being added to
openstack-common as another step toward being able to eventually move
nova.rpc to openstack-common.
This module provides a few things:
1) A handy function for getting an object down to something that can
be JSON serialized. See to_primitive().
2) Wrappers around loads() and dumps(). The dumps() wrapper will
automatically use to_primitive() for you if needed.
3) This sets up anyjson to use the loads() and dumps() wrappers if
anyjson is available.
Change-Id: I41e5759360d515ed53defe69f3e8247aafbcc83a
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/pip-requires | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/pip-requires b/tools/pip-requires index 506fdc9..adb2400 100644 --- a/tools/pip-requires +++ b/tools/pip-requires @@ -8,3 +8,4 @@ mox==0.5.3 routes==1.12.3 webtest iso8601>=0.1.4 +anyjson==0.2.4 |
