示例#1
0
    def _convertJSON(self):
        """
		Convert a JSON result into a Python dict. This method can be overwritten in a subclass
		for a different conversion method.
		@return: converted result
		@rtype: Python dictionary
		"""
        return jsonlayer.decode(self.response.read())
示例#2
0
	def _convertJSON(self) :
		"""
		Convert a JSON result into a Python dict. This method can be overwritten in a subclass
		for a different conversion method.
		@return: converted result
		@rtype: Python dictionary
		"""
		return jsonlayer.decode(self.response.read())
示例#3
0
 def parse(self, source): 
     return JSONResult(jsonlayer.decode(source.read()))
示例#4
0
 def parse(self, source):
     inp = source.read()
     if isinstance(inp, bytestype):
         inp = inp.decode('utf-8')
     return JSONResult(jsonlayer.decode(inp))
示例#5
0
 def parse(self, source):
     inp = source.read()
     if isinstance(inp, bytestype):
         inp = inp.decode('utf-8')
     return JSONResult(jsonlayer.decode(inp))
示例#6
0
 def parse(self, source):
     return JSONResult(jsonlayer.decode(source.read()))