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

Defined in:
lib/convenient_service/examples/standard/request_params/utils/json.rb,
lib/convenient_service/examples/standard/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



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

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