gems.multi_json-1.12.1.lib.multi_json.adapters.gson.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
require 'gson'
require 'stringio'
require 'multi_json/adapter'
module MultiJson
module Adapters
# Use the gson.rb library to dump/load.
class Gson < Adapter
ParseError = ::Gson::DecodeError
def load(string, options = {})
::Gson::Decoder.new(options).decode(string)
end
def dump(object, options = {})
::Gson::Encoder.new(options).encode(object)
end
end
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy