lib/bamboozled/api/base.rb in bamboozled-0.0.2 vs lib/bamboozled/api/base.rb in bamboozled-0.0.3

- old
+ new

@@ -32,10 +32,10 @@ params[:response] = response.inspect.to_s case response.code when 200..201 begin - JSON.load(response, nil) + JSON.parse(response) rescue MultiXml.parse(response, symbolize_keys: true) end when 400 raise Bamboozled::BadRequest.new(response, params, 'The request was invalid or could not be understood by the server. Resubmitting the request will likely result in the same error.')