def JsonDumpForScriptContext(dump_object):
 js_state_json = json.dumps(dump_object)
 return js_state_json.replace('<', '\\\\x3c').replace('>', '\\\\x3e')

def JsonDumpForScriptContext ( dump_object ) : js_state_json = json . dumps ( dump_object ) return js_state_json . replace ( '<' , '\\\\x3c' ) . replace ( '>' , '\\\\x3e' )
dump an object to json .