Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chronoxor/FastBinaryEncoding
/ to_json
Method
to_json
projects/Python/proto/enums.py:1519–1520 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1517
1518
# Get struct JSON value
1519
def
to_json(self):
1520
return
json.dumps(self.__to_json__(), cls=fbe.JSONEncoder, separators=(
','
,
':'
))
1521
1522
def
__to_json__(self):
1523
result = dict()
Callers
15
test_serialization_json_domain
Method · 0.45
test_serialization_json_struct_simple
Method · 0.45
test_serialization_json_struct_optional
Method · 0.45
test_serialization_json_struct_nested
Method · 0.45
test_serialization_json_struct_bytes
Method · 0.45
test_serialization_json_struct_array
Method · 0.45
test_serialization_json_struct_vector
Method · 0.45
test_serialization_json_struct_list
Method · 0.45
test_serialization_json_struct_set
Method · 0.45
test_serialization_json_struct_map
Method · 0.45
test_serialization_json_struct_hash
Method · 0.45
test_serialization_json_enums
Method · 0.45
Calls
1
__to_json__
Method · 0.95
Tested by
12
test_serialization_json_domain
Method · 0.36
test_serialization_json_struct_simple
Method · 0.36
test_serialization_json_struct_optional
Method · 0.36
test_serialization_json_struct_nested
Method · 0.36
test_serialization_json_struct_bytes
Method · 0.36
test_serialization_json_struct_array
Method · 0.36
test_serialization_json_struct_vector
Method · 0.36
test_serialization_json_struct_list
Method · 0.36
test_serialization_json_struct_set
Method · 0.36
test_serialization_json_struct_map
Method · 0.36
test_serialization_json_struct_hash
Method · 0.36
test_serialization_json_enums
Method · 0.36