Sha256: 7babe8a1f261bbf1ea29ba32c0755702f952ae02267bf0ae83382fd9d4301ecc

Contents?: true

Size: 306 Bytes

Versions: 10

Compression:

Stored size: 306 Bytes

Contents

module java::util::Collection #:nodoc:

  # Returns a JSON string representing the Array. +options+ are passed to each element.
  def to_json(options = nil) #:nodoc:
    "[#{map { |value| ActiveSupport::JSON.encode(value, options) } * ','}]"
  end

  def as_json(options = nil) #:nodoc:
    self
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jactive_support-2.1.2 lib/jactive_support/json/encoders/collection.rb
jactive_support-3.0.0 lib/jactive_support/json/encoders/collection.rb
jactive_support-3.0.0.pre2 lib/jactive_support/json/encoders/collection.rb
jactive_support-3.0.0.pre1 lib/jactive_support/json/encoders/collection.rb
jactive_support-2.1.1 lib/jactive_support/json/encoders/collection.rb
jactive_support-2.1.0 lib/jactive_support/json/encoders/collection.rb
jactive_support-2.0.0 lib/jactive_support/json/encoders/collection.rb
jactive_support-1.0.2 lib/jactive_support/json/encoders/collection.rb
jactive_support-1.0.1-universal-java-1.6 lib/jactive_support/json/encoders/collection.rb
jactive_support-1.0.0-universal-java-1.6 lib/jactive_support/json/encoders/collection.rb