MCPcopy Create free account
hub / github.com/piccolo-orm/piccolo / load_json

Function load_json

piccolo/utils/encoding.py:66–74  ·  view source on GitHub ↗
(data: str)

Source from the content-addressed store, hash-verified

64
65
66def load_json(data: str) -> Any:
67 response = (
68 orjson.loads(data) if ORJSON else json.loads(data) # type: ignore
69 )
70
71 if isinstance(response, dict):
72 return JSONDict(**response)
73
74 return response

Callers 7

pydantic_json_validatorFunction · 0.90
load_json_stringFunction · 0.90
convert_array_outFunction · 0.90
_process_resultsMethod · 0.90
response_handlerMethod · 0.90
test_dump_loadMethod · 0.90

Calls 1

JSONDictClass · 0.85

Tested by 1

test_dump_loadMethod · 0.72