def encode_json_for_js(data, indent=None):
 return json.dumps(data, indent=indent, cls=JSONEncoderForHTML)

def encode_json_for_js ( data , indent = None ) : return json . dumps ( data , indent = indent , cls = JSONEncoderForHTML )
converts data into a json string .