Sha256: de859445c9cd0143eab9115969c9736d549c9e0fd5695974aee39a736689cfb5
Contents?: true
Size: 268 Bytes
Versions: 2
Compression:
Stored size: 268 Bytes
Contents
require 'multi_json' module ZMachine module Middleware class JSONResponse def response(resp) begin body = MultiJson.load(resp.response) resp.response = body rescue Exception => e end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
z-http-request-0.2.0 | lib/z-http/middleware/json_response.rb |
z-http-request-0.1.0 | lib/z-http/middleware/json_response.rb |