Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ __init__
Method
__init__
src/6/reading_and_writing_json_data/example.py:16–17 ·
view source on GitHub ↗
(self, d)
Source
from the content-addressed store, hash-verified
14
15
class
JSONObject:
16
def
__init__(self, d):
17
self.__dict__ = d
18
19
data = json.loads(s, object_hook=JSONObject)
20
print(data.name)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected