There's no documentation for this item.
# File action_view/helpers/prototype_helper.rb, line 962 def javascript_object_for(object) object.respond_to?(:to_json) ? object.to_json : object.inspect end
<code/>
<pre/>
<code/>and<pre/>for code samples.