MCPcopy Index your code
hub / github.com/angular/angular-cli / readJson

Method readJson

packages/angular_devkit/schematics/src/tree/interface.ts:109–109  ·  view source on GitHub ↗

* Reads and parses a file from the Tree as a UTF-8 encoded JSON file. * Supports parsing JSON (RFC 8259) with the following extensions: * * Single-line and multi-line JavaScript comments * * Trailing commas within objects and arrays * * @param path The path of the file to read. * @

(path: string)

Source from the content-addressed store, hash-verified

107 * @throws An error if the file contains malformed JSON.
108 */
109 readJson(path: string): JsonValue;
110
111 exists(path: string): boolean;
112 get(path: string): FileEntry | null;

Callers 15

getJsonFileContentFunction · 0.65
dependency_spec.tsFile · 0.65
workspace_spec.tsFile · 0.65
getDependencyFunction · 0.65
addDependencyFunction · 0.65
removeDependencyFunction · 0.65
index_spec.tsFile · 0.65
addScriptsRuleFunction · 0.65
migration_spec.tsFile · 0.65
expectDependencyFunction · 0.65
migration_spec.tsFile · 0.65
addWorkspaceTargetFunction · 0.65

Implementers 4

HostTreepackages/angular_devkit/schematics/src
ScopedTreepackages/angular_devkit/schematics/src
NullTreepackages/angular_devkit/schematics/src
DelegateTreepackages/angular_devkit/schematics/src

Calls

no outgoing calls

Tested by

no test coverage detected