push
github
194 of 199 new or added lines in 27 files covered. (97.49%)
3544 of 3604 relevant lines covered (98.34%)
62111.55 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
| 3 |
module Grape |
51✔ |
| 4 |
module Formatter |
51✔ |
|
|
class Json < Base |
51✔ |
|
|
def self.call(object, _env) |
51✔ |
|
|
return object.to_json if object.respond_to?(:to_json) |
12,605✔ |
| 8 |
|
|
|
NEW
|
::Grape::Json.dump(object) |
× |
| 10 |
end
|
|
| 11 |
end
|
|
| 12 |
end
|
|
| 13 |
end
|