parameters: (self, data, pretty=True)
docstring: Writes a python object as JSON to disk (Python ≥ 2.6) as UTF-8 data (JSON standard)::
  
  			def build(bld):
  				bld.path.find_node('xyz.json').write_json(199)
  
  		:type  data: object
  		:param data: The data to write to disk
  		:type  pretty: boolean
  		:param pretty: Determines if the JSON will be nicely space separated
docstring_summary: Writes a python object as JSON to disk (Python ≥ 2.6) as UTF-8 data (JSON standard)::
docstring_tokens: Writes a python object as JSON to disk ( Python ≥ 2 . 6 ) as UTF - 8 data ( JSON standard ) ::
function: def write_json(self, data, pretty=True):
  		"""
  		Writes a python object as JSON to disk (Python ≥ 2.6) as UTF-8 data (JSON standard)::
  
  			def build(bld):
  				bld.path.find_node('xyz.json').write_json(199)
  
  		:type  data: object
  		:param data: The data to write to disk
  		:type  pretty: boolean
  		:param pretty: Determines if the JSON will be nicely space separated
  		"""
  		import json # Python 2.6 and up
  		indent = 2
  		separators = (',', ': ')
  		sort_keys = pretty
  		newline = os.linesep
  		if not pretty:
  			indent = None
  			separators = (',', ':')
  			newline = ''
  		output = json.dumps(data, indent=indent, separators=separators, sort_keys=sort_keys) + newline
  		self.write(output, encoding='utf-8')
function_tokens: def write_json ( self , data , pretty = True ) : import json # Python 2.6 and up indent = 2 separators = ( ',' , ': ' ) sort_keys = pretty newline = os . linesep if not pretty : indent = None separators = ( ',' , ':' ) newline = '' output = json . dumps ( data , indent = indent , separators = separators , sort_keys = sort_keys ) + newline self . write ( output , encoding = 'utf-8' )