Module: ConvenientService::Examples::Standard::V1::RequestParams::Utils::JSON

Defined in:
lib/convenient_service/examples/standard/v1/request_params/utils/json.rb,
lib/convenient_service/examples/standard/v1/request_params/utils/json/safe_parse.rb

Defined Under Namespace

Classes: SafeParse

Class Method Summary collapse

Class Method Details

.safe_parse(json_string, default_value: nil) ⇒ Object



13
14
15
# File 'lib/convenient_service/examples/standard/v1/request_params/utils/json.rb', line 13

def safe_parse(json_string, default_value: nil)
  SafeParse.call(json_string, default_value: default_value)
end