for every f and e in list of tuples of self dictionary key, pair entries. define the method as_json with 2 argumens self and escape_html set to boolean False.
def as_json ( self , escape_html = False ) :