original_docstring: 
  		Iterate over the JSON and process it to generate the super awesome HTML Table format
  		
docstring: Iterate over the JSON and process it to generate the super awesome HTML Table format
docstring_tokens: Iterate over the JSON and process it to generate the super awesome HTML Table format
code: def iterJson(self, ordered_json):
  		'''
  		Iterate over the JSON and process it to generate the super awesome HTML Table format
  		'''
  
  		def markup(entry, parent_is_list = False):
  			'''
  			Check for each value corresponding to its key and return accordingly
  			'''
  			if(isinstance(entry,unicode)):
  				return unicode(entry)
  			if(isinstance(entry,int) or isinstance(entry,float)):
  				return str(entry)
  			if(parent_is_list and isinstance(entry,list)==True):
  				#list of lists are not accepted
  				return ''
  			if(isinstance(entry,list)==True) and len(entry) == 0:
  				return ''
  			if(isinstance(entry,list)==True):
  				return '<ul><li>' + '</li><li>'.join([markup(child, parent_is_list=True) for child in entry]) + '</li></ul>'
  			if(isinstance(entry,dict)==True):
  				return self.iterJson(entry)
  
  			#safety: don't do recursion over anything that we don't know about - iteritems() will most probably fail
  			return ''
  
  		convertedOutput = ''
  
  		global table_attributes
  		table_init_markup = "<table %s>" %(table_attributes)
  		convertedOutput = convertedOutput + table_init_markup
  
  		for k,v in ordered_json.iteritems():
  			convertedOutput = convertedOutput + '<tr>'
  			convertedOutput = convertedOutput + '<th>'+ str(k) +'</th>'
  
  			if (v == None):
  				v = unicode("")
  			if(isinstance(v,list)):
  				column_headers = self.columnHeadersFromListOfDicts(v)
  				if column_headers != None:
  					convertedOutput = convertedOutput + '<td>'
  					convertedOutput = convertedOutput + table_init_markup
  					convertedOutput = convertedOutput + '<tr><th>' + '</th><th>'.join(column_headers) + '</th></tr>'
  					for list_entry in v:
  						convertedOutput = convertedOutput + '<tr><td>' + '</td><td>'.join([markup(list_entry[column_header]) for column_header in column_headers]) + '</td></tr>'
  					convertedOutput = convertedOutput + '</table>'
  					convertedOutput = convertedOutput + '</td>'
  					convertedOutput = convertedOutput + '</tr>'
  					continue
  			convertedOutput = convertedOutput + '<td>' + markup(v) + '</td>'
  			convertedOutput = convertedOutput + '</tr>'
  		convertedOutput = convertedOutput + '</table>'
  		return convertedOutput
code_tokens: def iterJson ( self , ordered_json ) : def markup ( entry , parent_is_list = False ) : '''
  			Check for each value corresponding to its key and return accordingly
  			''' if ( isinstance ( entry , unicode ) ) : return unicode ( entry ) if ( isinstance ( entry , int ) or isinstance ( entry , float ) ) : return str ( entry ) if ( parent_is_list and isinstance ( entry , list ) == True ) : return '' if ( isinstance ( entry , list ) == True ) and len ( entry ) == 0 : return '' if ( isinstance ( entry , list ) == True ) : return '<ul><li>' + '</li><li>' . join ( [ markup ( child , parent_is_list = True ) for child in entry ] ) + '</li></ul>' if ( isinstance ( entry , dict ) == True ) : return self . iterJson ( entry ) return '' convertedOutput = '' global table_attributes table_init_markup = "<table %s>" % ( table_attributes ) convertedOutput = convertedOutput + table_init_markup for k , v in ordered_json . iteritems ( ) : convertedOutput = convertedOutput + '<tr>' convertedOutput = convertedOutput + '<th>' + str ( k ) + '</th>' if ( v == None ) : v = unicode ( "" ) if ( isinstance ( v , list ) ) : column_headers = self . columnHeadersFromListOfDicts ( v ) if column_headers != None : convertedOutput = convertedOutput + '<td>' convertedOutput = convertedOutput + table_init_markup convertedOutput = convertedOutput + '<tr><th>' + '</th><th>' . join ( column_headers ) + '</th></tr>' for list_entry in v : convertedOutput = convertedOutput + '<tr><td>' + '</td><td>' . join ( [ markup ( list_entry [ column_header ] ) for column_header in column_headers ] ) + '</td></tr>' convertedOutput = convertedOutput + '</table>' convertedOutput = convertedOutput + '</td>' convertedOutput = convertedOutput + '</tr>' continue convertedOutput = convertedOutput + '<td>' + markup ( v ) + '</td>' convertedOutput = convertedOutput + '</tr>' convertedOutput = convertedOutput + '</table>' return convertedOutput
short_docstring: Iterate over the JSON and process it to generate the super awesome HTML Table format
short_docstring_tokens: Iterate over the JSON and process it to generate the super awesome HTML Table format
comment: '''
  		Iterate over the JSON and process it to generate the super awesome HTML Table format
  		'''$SEP$'''
  			Check for each value corresponding to its key and return accordingly
  			'''$SEP$#list of lists are not accepted$SEP$#safety: don't do recursion over anything that we don't know about - iteritems() will most probably fail