def default (self, obj):
    try:
      return obj.__json__()
    except __HOLE__, e:
      return json.JSONEncoder.default(self, obj)
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/core/json.py/APIEncoder.default