in spotify_tensorflow/example_decoders.py [0:0]
def default(self, obj):
if isinstance(obj, np.ndarray):
return obj.tolist()
if isinstance(obj, bytes):
return obj.decode()
return json.JSONEncoder.default(self, obj)