MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / loadJson

Method loadJson

src/Site/SiteStorage.py:325–327  ·  view source on GitHub ↗
(self, inner_path)

Source from the content-addressed store, hash-verified

323
324 # Load and parse json file
325 def loadJson(self, inner_path):
326 with self.open(inner_path, "r", encoding="utf8") as file:
327 return json.load(file)
328
329 # Write formatted json file
330 def writeJson(self, inner_path, data):

Callers 15

getDbFileMethod · 0.95
getDbSchemaMethod · 0.95
rebuildDbMethod · 0.95
deleteFilesMethod · 0.95
actionFileDeleteMethod · 0.80
cloneMethod · 0.80
loadItemMethod · 0.80
loadContentMethod · 0.80
getUserContentRulesMethod · 0.80
signMethod · 0.80
testSignersMethod · 0.80
testRulesMethod · 0.80

Calls 2

openMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected