MCPcopy Create free account
hub / github.com/zxlie/FeHelper / parseJsonForDiff

Function parseJsonForDiff

apps/json-diff/index.js:218–226  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

216}
217
218function parseJsonForDiff(text) {
219 if (window.FHJsonAutoUtils && typeof window.FHJsonAutoUtils.parseJSONLike === 'function') {
220 const parsed = window.FHJsonAutoUtils.parseJSONLike(text, {
221 nestedEscapeParse: true
222 });
223 if (parsed) return parsed.value;
224 }
225 return JSON.parse(text);
226}
227
228window.vueApp = new Vue({
229 el: '#pageContainer',

Callers 1

index.jsFile · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected