nl: call the method json.dumps with a dictionary generate with an expression as an argument, return value of the function e.get_json_data,
code: return json . dumps ( { f : e . get_json_data ( escape_html ) for f , e in self . items ( ) } )