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

Function coerceDecodedJSONSource

apps/json-format/json-auto-utils.js:480–486  ·  view source on GitHub ↗
(source, decodedSource, options)

Source from the content-addressed store, hash-verified

478 }
479
480 function coerceDecodedJSONSource(source, decodedSource, options) {
481 const parsed = parseJSONLike(decodedSource, options);
482 if (!parsed) {
483 return source;
484 }
485 return parsed.normalizedSource;
486 }
487
488 function isYAMLResource(url, contentType) {
489 const type = String(contentType || '').toLowerCase();

Callers

nothing calls this directly

Calls 1

parseJSONLikeFunction · 0.85

Tested by

no test coverage detected