MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / readFileAsJson

Method readFileAsJson

src/main/base/FileSystem.ts:220–226  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

218 }
219
220 readFileAsJson(filePath: string): any {
221 let fileContent = this.readFile(filePath)
222
223 if(!fileContent) return null
224
225 return JSON.parse(fileContent)
226 }
227
228 readFolderIfExists(folderPath: string, removeBasePath: boolean): Array<string> {
229 if(!this.folderExists(folderPath)) return []

Callers 1

Calls 2

readFileMethod · 0.95
parseMethod · 0.80

Tested by

no test coverage detected