summaryrefslogtreecommitdiffstats
path: root/openstack/common/setup.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-05-14 18:18:38 -0400
committerRussell Bryant <rbryant@redhat.com>2012-05-15 10:46:48 -0400
commit654d80b416dc5f413cb791aa838ec8688bf7da44 (patch)
treef2566d874a5bb0cac9b78b2c5132165792cd5c43 /openstack/common/setup.py
parente3babb3748b410f685334de65aaecf943a13ec1e (diff)
downloadoslo-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 'openstack/common/setup.py')
0 files changed, 0 insertions, 0 deletions