method

encode_json

rails latest stable - Class: Array

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

encode_json(encoder)
public

No documentation available.

# File activesupport/lib/active_support/json/encoding.rb, line 273
  def encode_json(encoder) #:nodoc:
    # we assume here that the encoder has already run as_json on self and the elements, so we run encode_json directly
    "[#{map { |v| v.encode_json(encoder) } * ','}]"
  end