def print_json(obj):
    try:
        s = json.dumps(obj, sort_keys = True, indent = 4, cls=MyEncoder)
    except __HOLE__:
        s = repr(obj)
    sys.stdout.write(s + "\n")
    sys.stdout.flush()
dataset/ETHPy150Open bitxbay/BitXBay/electru/build/lib/electrum/util.py/print_json