MCPcopy
hub / github.com/angular/angular-cli / parseJson

Function parseJson

packages/angular/cli/src/utilities/json-file.ts:225–227  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

223 * @returns The parsed JSON object.
224 */
225export function parseJson<T extends JsonValue>(content: string): T {
226 return parse(content, undefined, { allowTrailingComma: true }) as T;
227}

Callers 6

setMethod · 0.90
index_spec.tsFile · 0.85
index_spec.tsFile · 0.85
readJsonFileFunction · 0.85
index_spec.tsFile · 0.85
getWorkspaceFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected