Sha256: 36495d8b54ff54f31a4ce4d62c85a2daf20fced4471bcad3c9762b83a7e7cb21
Contents?: true
Size: 272 Bytes
Versions: 12
Compression:
Stored size: 272 Bytes
Contents
# frozen_string_literal: true module Grape module Formatter module Json class << self def call(object, _env) return object.to_json if object.respond_to?(:to_json) ::Grape::Json.dump(object) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems