Sha256: cb193224880883a6c780aea5d413318c986188de2878dbd61d94011fb7912b6d
Contents?: true
Size: 459 Bytes
Versions: 17
Compression:
Stored size: 459 Bytes
Contents
module GnipApi class JsonParser def parse data begin return parser.parse(data) rescue Yajl::ParseError => error raise GnipApi::Errors::JsonParser::ParseError.new("Yajl failed to parse: #{error.class} -- #{error.message}") end end def encode data return encoder.encode(data) end private def parser Yajl::Parser.new end def encoder Yajl::Encoder.new end end end
Version data entries
17 entries across 17 versions & 1 rubygems