MCPcopy Create free account
hub / github.com/Freedium-cfd/web / json

Method json

database-lib/database_lib/main.py:28–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.data = data
27
28 def json(self):
29 try:
30 return json.loads(self.data)
31 except json.JSONDecodeError:
32 logger.warning(
33 f"Failed to decode JSON data: {self.data[:100]}... Trying workaround"
34 )
35 return self.workaround_decode_json()
36
37 def workaround_decode_json(self):
38 if self.data.startswith("\\x"):

Callers 4

test_push_and_pullMethod · 0.45
jsonMethod · 0.45
_get_from_cacheMethod · 0.45
query_post_graphqlMethod · 0.45

Calls 2

loadsMethod · 0.45

Tested by 1

test_push_and_pullMethod · 0.36