Sha256: 04cd49eb198291d1cc58cc9a0a4cb5bcdae0044c6f05ac44327056e34a3ab418
Contents?: true
Size: 369 Bytes
Versions: 32
Compression:
Stored size: 369 Bytes
Contents
require 'json' module Restfully module MediaType class ApplicationJson < AbstractMediaType class JSONParser def self.load(io, *args) JSON.load(io) end def self.dump(object, *args) JSON.dump(object) end end set :signature, "application/json" set :parser, JSONParser end end end
Version data entries
32 entries across 32 versions & 1 rubygems