MCPcopy
hub / github.com/zxlie/FeHelper / _stringifyJsonNodeValue

Function _stringifyJsonNodeValue

apps/json-format/format-lib.js:1081–1089  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

1079 };
1080
1081 let _stringifyJsonNodeValue = function (el) {
1082 if (!cachedJsonString) {
1083 return getJsonText(el);
1084 }
1085
1086 let value = _getJsonValueByKeys(_getJsonPathKeys(el));
1087 let text = JSON.stringify(value, null, 4);
1088 return text === undefined ? '' : text;
1089 };
1090
1091 let _getSelectionInfo = function (el) {
1092 let selected = (el !== undefined && el !== null) ? el : _getSelectedJsonElement();

Callers 1

_getSelectionInfoFunction · 0.85

Calls 3

getJsonTextFunction · 0.85
_getJsonValueByKeysFunction · 0.85
_getJsonPathKeysFunction · 0.85

Tested by

no test coverage detected