class Array

def encode_json(encoder) #:nodoc:

:nodoc:
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