Fix robustness issue: empty JSON {} in cfg.json or wsec.json
#355
+12
−4
{} in cfg.json or wsec.json
#355