Lines Matching refs:json
11 import simplejson as json
13 import json
90 if app_iter is None and body is None and ('json_body' in kw or 'json' in kw):
94 json_body = kw.pop('json')
95 body = json.dumps(json_body, separators=(',', ':'))
97 content_type = 'application/json'
124 or content_type.startswith('application/json')
126 and (content_type.endswith('+xml') or content_type.endswith('+json'))))):
388 """Access the body of the response as JSON"""
389 # Note: UTF-8 is a content-type specific default for JSON:
390 return json.loads(self.body.decode(self.charset or 'UTF-8'))
393 self.body = json.dumps(value, separators=(',', ':')).encode(self.charset or 'UTF-8')
398 json = json_body = property(_json_body__get, _json_body__set, _json_body__del)