Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cockpit-project/cockpit
/ JSON_parse_carefully
Function
JSON_parse_carefully
pkg/networkmanager/interfaces.js:571–577 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
569
}
570
571
function
JSON_parse_carefully(str) {
572
try {
573
return
JSON.parse(str);
574
} catch (e) {
575
return
null;
576
}
577
}
578
579
if
(settings.team) {
580
result.team = {
Callers
1
settings_from_nm
Function · 0.85
Calls
1
parse
Method · 0.80
Tested by
no test coverage detected