MCPcopy
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_nmFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected