#NEWLINE# def encode( self , o ) : #NEWLINE# #INDENT# '\n        Return a JSON string representation of a Python data structure.\n\n        >>> JSONEncoder().encode({"foo": ["bar", "baz"]})\n        \'{"foo":["bar", "baz"]}\'\n        ' #NEWLINE# chunks = list ( self . iterencode ( o ) ) #NEWLINE# return '' . join ( chunks )