lib/mailgun/messages/message_builder.rb
def valid_json?(json_)
      JSON.parse(json_)
      return true
    rescue JSON::ParserError
      false
    end
# Validates whether the input is JSON.
#
# @param [String] json_ The suspected JSON string.
# @return [void]
Validates whether the input is JSON.
Validates whether the input is JSON .
def valid_json?(json_)
      JSON.parse(json_)
      return true
    rescue JSON::ParserError
      false
    end
def valid_json? ( json_ ) JSON . parse ( json_ ) return true rescue JSON :: ParserError false end
Validates whether the input is JSON.
Validates whether the input is JSON .
None
void
json_
json_ The suspected JSON string.
json_ The suspected JSON string .