#NEWLINE# def to_json( self , content , pretty_print = False ) : #NEWLINE# #INDENT# " Convert a string to a JSON object\n\n        `content` String content to convert into JSON\n\n        'pretty_print' If defined, will output JSON is pretty print format\n        " #NEWLINE# if pretty_print : #NEWLINE# #INDENT# json_ = self . _json_pretty_print ( content ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# json_ = json . loads ( content ) #NEWLINE# #UNINDENT# logger . info ( ( 'To JSON using : content=%s ' % content ) ) #NEWLINE# logger . info ( ( 'To JSON using : pretty_print=%s ' % pretty_print ) ) #NEWLINE# return content