parameters: (self, convert=True, encoding='utf-8')
return_statement: return json.loads(self.read(encoding=encoding), object_pairs_hook=object_pairs_hook)
docstring: Reads and parses the contents of this node as JSON (Python ≥ 2.6)::
  
  			def build(bld):
  				bld.path.find_node('abc.json').read_json()
  
  		Note that this by default automatically decodes unicode strings on Python2, unlike what the Python JSON module does.
  
  		:type  convert: boolean
  		:param convert: Prevents decoding of unicode strings on Python2
  		:type  encoding: string
  		:param encoding: The encoding of the file to read. This default to UTF8 as per the JSON standard
  		:rtype: object
  		:return: Parsed file contents
docstring_summary: Reads and parses the contents of this node as JSON (Python ≥ 2.6)::
docstring_tokens: Reads and parses the contents of this node as JSON ( Python ≥ 2 . 6 ) ::
function: def read_json(self, convert=True, encoding='utf-8'):
  		"""
  		Reads and parses the contents of this node as JSON (Python ≥ 2.6)::
  
  			def build(bld):
  				bld.path.find_node('abc.json').read_json()
  
  		Note that this by default automatically decodes unicode strings on Python2, unlike what the Python JSON module does.
  
  		:type  convert: boolean
  		:param convert: Prevents decoding of unicode strings on Python2
  		:type  encoding: string
  		:param encoding: The encoding of the file to read. This default to UTF8 as per the JSON standard
  		:rtype: object
  		:return: Parsed file contents
  		"""
  		import json # Python 2.6 and up
  		object_pairs_hook = None
  		if convert and sys.hexversion < 0x3000000:
  			try:
  				_type = unicode
  			except NameError:
  				_type = str
  
  			def convert(value):
  				if isinstance(value, list):
  					return [convert(element) for element in value]
  				elif isinstance(value, _type):
  					return str(value)
  				else:
  					return value
  
  			def object_pairs(pairs):
  				return dict((str(pair[0]), convert(pair[1])) for pair in pairs)
  
  			object_pairs_hook = object_pairs
  
  		return json.loads(self.read(encoding=encoding), object_pairs_hook=object_pairs_hook)
function_tokens: def read_json ( self , convert = True , encoding = 'utf-8' ) : import json # Python 2.6 and up object_pairs_hook = None if convert and sys . hexversion < 0x3000000 : try : _type = unicode except NameError : _type = str def convert ( value ) : if isinstance ( value , list ) : return [ convert ( element ) for element in value ] elif isinstance ( value , _type ) : return str ( value ) else : return value def object_pairs ( pairs ) : return dict ( ( str ( pair [ 0 ] ) , convert ( pair [ 1 ] ) ) for pair in pairs ) object_pairs_hook = object_pairs return json . loads ( self . read ( encoding = encoding ) , object_pairs_hook = object_pairs_hook )