#NEWLINE# @ plugin #NEWLINE# def toJSON( replay , **user_options ) : #NEWLINE# #INDENT# options = dict ( cls = JSONDateEncoder ) #NEWLINE# options . update ( user_options ) #NEWLINE# obj = toDict ( ) ( replay ) #NEWLINE# return json . dumps ( obj , ** options )