def getBodyJson():
    try:
        return json.loads(cherrypy.request.body.read().decode('utf8'))
    except ValueError:
        raise RestException('Invalid JSON passed in request body.')
For requests that are expected to contain a JSON body, this returns the
dataset/ETHPy150Open girder/girder/girder/api/rest.py/getBodyJson