Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
to_json(options = nil)
public
Returns a JSON string representing the Array.
options are passed to each element.
# File activesupport/lib/active_support/json/encoders/enumerable.rb, line 10
def to_json(options = nil) #:nodoc:
"[#{map { |value| ActiveSupport::JSON.encode(value, options) } * ','}]"
end