Sha256: e78a36459e111b56ddfcb2c614e13f7331b03c6334437bbaa2a59f1a21a724b1
Contents?: true
Size: 457 Bytes
Versions: 66
Compression:
Stored size: 457 Bytes
Contents
require 'yajl' unless defined?(::Yajl) require 'multi_json/adapter' module MultiJson module Adapters # Use the Yajl-Ruby library to dump/load. class Yajl < Adapter ParseError = ::Yajl::ParseError def load(string, options={}) ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string) end def dump(object, options={}) ::Yajl::Encoder.encode(object, options) end end end end
Version data entries
66 entries across 64 versions & 10 rubygems