method

respond_to?

respond_to?(method)
public

The JSON Encoder calls this to check for the to_json method Since it’s a blank slate object, I suppose it responds to anything.