Sha256: 599661bbd14b195d39748e94180c8a7bf8201e3b2c6d996e5df8f48371bb3187
Contents?: true
Size: 299 Bytes
Versions: 5
Compression:
Stored size: 299 Bytes
Contents
json = Http::MimeType.new 'application/json', :json json.parse_with do |obj| if defined?(JSON) and JSON.respond_to? :parse JSON.parse(obj) else obj end end json.emit_with do |obj| if obj.is_a? String obj elsif obj.respond_to? :to_json obj.to_json else obj end end
Version data entries
5 entries across 5 versions & 1 rubygems