Module: JSON::Ext::Generator::GeneratorMethods::Array (Ruby 2.2.4)
Description: Module : JSON::Ext::Generator::GeneratorMethods::Array - Ruby 2.2.4

- Home
- Core 2.2.4
- Std-lib 2.2.4
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- json/generator/generator.c

### Methods

- #to_json

### Class/Module Index

Quicksearch

- BigDecimal
- Class
- Complex
- Date
- DateTime
- Exception
- JSON
- JSON::Ext
- JSON::Ext::Generator
- JSON::Ext::Generator::GeneratorMethods
- JSON::Ext::Generator::GeneratorMethods::Array
- JSON::Ext::Generator::GeneratorMethods::Bignum
- JSON::Ext::Generator::GeneratorMethods::FalseClass
- JSON::Ext::Generator::GeneratorMethods::Fixnum
- JSON::Ext::Generator::GeneratorMethods::Float
- JSON::Ext::Generator::GeneratorMethods::Hash
- JSON::Ext::Generator::GeneratorMethods::NilClass
- JSON::Ext::Generator::GeneratorMethods::Object
- JSON::Ext::Generator::GeneratorMethods::String
- JSON::Ext::Generator::GeneratorMethods::String::Extend
- JSON::Ext::Generator::GeneratorMethods::TrueClass
- JSON::Ext::Generator::State
- JSON::Ext::Parser
- JSON::GeneratorError
- JSON::GenericObject
- JSON::JSONError
- JSON::MissingUnicodeSupport
- JSON::NestingError
- JSON::ParserError
- JSON::UnparserError
- Kernel
- OpenStruct
- Range
- Rational
- Regexp
- Struct
- Symbol
- Time

No matching classes.

# JSON::Ext::Generator::GeneratorMethods::Array

### Public Instance Methods

to_json(state = nil) click to toggle source

Returns a JSON string containing a JSON array, that is generated from this Array instance. state is a JSON::State object, that can also be used to configure the produced JSON string output further.

                   static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
        GENERATE_JSON(array);
    }