Class: MultiJson::Adapters::Yajl

### Home Classes Methods

### In Files

- lib/multi_json/adapters/yajl.rb

### Parent

MultiJson::Adapter

### Methods

- #dump
- #load

### Class/Module Index

Quicksearch

- MultiJson
- MultiJson::Adapter
- MultiJson::Adapters
- MultiJson::Adapters::Gson
- MultiJson::Adapters::Jrjackson
- MultiJson::Adapters::JsonCommon
- MultiJson::Adapters::JsonGem
- MultiJson::Adapters::JsonPure
- MultiJson::Adapters::Nsjsonserialization
- MultiJson::Adapters::Oj
- MultiJson::Adapters::OkJson
- MultiJson::Adapters::Yajl
- MultiJson::ConvertibleHashKeys
- MultiJson::LoadError
- MultiJson::OkJson
- MultiJson::OkJson::Error
- MultiJson::OkJson::Utf8Error
- MultiJson::Options

No matching classes.

# MultiJson::Adapters::Yajl

Use the Yajl-Ruby library to dump/load.

### Constants

ParseError

### Public Instance Methods

dump(object, options={}) click to toggle source

    # File lib/multi_json/adapters/yajl.rb, line 14
    def dump(object, options={})
      ::Yajl::Encoder.encode(object, options)
    end

load(string, options={}) click to toggle source

    # File lib/multi_json/adapters/yajl.rb, line 10
    def load(string, options={})
      ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.