def _from_json(self, datastring):
     return utils.loads(datastring)
Beispiel #2
0
 def _from_json(self, datastring):
     return utils.loads(datastring)
Beispiel #3
0
 def _from_json(self, datastring):
     try:
         return utils.loads(datastring)
     except ValueError:
         msg = _("cannot understand JSON")
         raise exception.MalformedRequestBody(reason=msg)
Beispiel #4
0
 def _from_json(self, datastring):
     try:
         return utils.loads(datastring)
     except ValueError:
         msg = _("cannot understand JSON")
         raise exception.MalformedRequestBody(reason=msg)