class Elasticsearch::Transport::Transport::Serializer::MultiJson

A default JSON serializer (using [MultiJSON](rubygems.org/gems/multi_json))

Public Instance Methods

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

Serialize a Hash to JSON string

# File lib/elasticsearch/transport/transport/serializer/multi_json.rb, line 29
def dump(object, options={})
  ::MultiJson.dump(object, options)
end
load(string, options={}) click to toggle source

De-serialize a Hash from JSON string

# File lib/elasticsearch/transport/transport/serializer/multi_json.rb, line 23
def load(string, options={})
  ::MultiJson.load(string, options)
end