
This contains updates to the OkJson library that allow objects to define to_json for serialization, and this will be used in the upcoming options and deps work.
13 lines
253 B
Ruby
13 lines
253 B
Ruby
require 'json' unless defined?(::JSON)
|
|
require 'multi_json/adapters/json_common'
|
|
|
|
module MultiJson
|
|
module Adapters
|
|
# Use the JSON gem to dump/load.
|
|
class JsonGem
|
|
ParseError = ::JSON::ParserError
|
|
extend JsonCommon
|
|
end
|
|
end
|
|
end
|