Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
66
def
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_validator
Function · 0.90
load_json_string
Function · 0.90
convert_array_out
Function · 0.90
convert_complex_array_out
Function · 0.90
_process_results
Method · 0.90
response_handler
Method · 0.90
test_dump_load
Method · 0.90
Calls
1
JSONDict
Class · 0.85
Tested by
1
test_dump_load
Method · 0.72