Exemplo n.º 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())
Exemplo n.º 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())
Exemplo n.º 3
0
 def parse(self, source): 
     return JSONResult(jsonlayer.decode(source.read()))
Exemplo n.º 4
0
 def parse(self, source):
     inp = source.read()
     if isinstance(inp, bytestype):
         inp = inp.decode('utf-8')
     return JSONResult(jsonlayer.decode(inp))
Exemplo n.º 5
0
 def parse(self, source):
     inp = source.read()
     if isinstance(inp, bytestype):
         inp = inp.decode('utf-8')
     return JSONResult(jsonlayer.decode(inp))
Exemplo n.º 6
0
 def parse(self, source):
     return JSONResult(jsonlayer.decode(source.read()))