def json_writer(fd, key, value, params): from disco.func import netstr_writer from discodex import json netstr_writer(fd, json.dumps(key, default=str), json.dumps(value, default=str), params)
def dumps(self): return json.dumps(self, default=str)