MCPcopy Create free account
hub / github.com/Snapchat/Valdi / parse

Method parse

npm_modules/cli/src/utils/jsonUtils.ts:10–14  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

8 ) {}
9
10 static parse<T>(content: string): JSONCFile<T> {
11 const parsed = parse(content) as T;
12
13 return new JSONCFile(content, parsed);
14 }
15
16 static fromObject<T>(object: T): JSONCFile<T> {
17 const content = JSON.stringify(object, null, 2);

Callers 1

fromObjectMethod · 0.45

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected