Update json module to jsonutils

oslo project provide jsonutils, and monascaclient  use it in many place[1],
this PS to update the remained json moudule to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/python-monascaclient/search?utf8=%E2%9C%93&q=jsonutils&type=

Change-Id: I895bc58dafa250b1279ffe70f779c5cc1e865db1
This commit is contained in:
cao.yuan 2019-02-25 00:45:47 +08:00
parent 4339da2ee5
commit dde64fb950

View File

@ -15,7 +15,6 @@
# limitations under the License.
import datetime
import json
import numbers
import time
@ -91,7 +90,7 @@ def do_metric_create(mc, args):
@utils.arg('jsonbody', metavar='<JSON_BODY>',
type=json.loads,
type=jsonutils.loads,
help='The raw JSON body in single quotes. See api doc.')
def do_metric_create_raw(mc, args):
'''Create metric from raw json body.'''