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.
# File action_view/helpers/prototype_helper.rb, line 1147 def respond_to?(method) true end
<code/>
<pre/>
<code/>and<pre/>for code samples.