Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ MyEncoder
Class
MyEncoder
1d_json/python/person.py:16–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
15
16
class
MyEncoder(json.JSONEncoder):
17
def
default(self, o):
18
return
o.__dict__
19
20
21
class
MyDecoder(json.JSONDecoder):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected