lib/api_client/base.rb in api_client-0.3.3 vs lib/api_client/base.rb in api_client-0.4.0

- old
+ new

@@ -1,7 +1,7 @@ require "hashie" -require "yajl" +require "multi_json" module ApiClient class Base < Hashie::Mash @@ -23,10 +23,10 @@ end def parse(response) response = response.body if response.is_a?(Faraday::Response) if self.format == :json - Yajl::Parser.parse(response) + MultiJson.load(response) elsif self.format == :xml MultiXml.parse(response) else response end