Module: Skooma::BodyParsers::JSONParser
- Defined in:
- lib/skooma/body_parsers.rb
Class Method Summary collapse
Class Method Details
.call(body, **_options) ⇒ Object
48 49 50 51 52 |
# File 'lib/skooma/body_parsers.rb', line 48 def self.call(body, **) JSON.parse(body) rescue JSON::ParserError body end |