diff --git a/src/lib/explorer/json_helper.cpp b/src/lib/explorer/json_helper.cpp index 2cd547d31..84466f529 100644 --- a/src/lib/explorer/json_helper.cpp +++ b/src/lib/explorer/json_helper.cpp @@ -363,7 +363,12 @@ Json::Value json_helper::prop_attenuation_model_param(const std::string& param_s } } else { - uint64_t num = std::stoull(value); + uint64_t num = std::numeric_limits::max(); + if (value[0] >= '0' && value[0] <= '9') { + num = stoull(value); + } else { + tree[key] = value; + } auto display_key = chain::attenuation_model::get_name_of_key(key); tree[display_key] = num; }