#NEWLINE# def to_json( self , data , options = None ) : #NEWLINE# #INDENT# '\n        Given some Python data, produces JSON output.\n        ' #NEWLINE# options = ( options or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . to_simple ( data , options ) #NEWLINE# return simplejson . dumps ( self , cls = json . DjangoJSONEncoder , sort_keys = True , ensure_ascii = False )