Source code for harp.utils.json import json [docs] class BytesEncoder(json.JSONEncoder): [docs] def default(self, o): if isinstance(o, bytes): return o.decode("ascii") else: return super().default(o)