MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / DefaultJsonSerializer

Class DefaultJsonSerializer

couchbase/serializer.py:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45class DefaultJsonSerializer(Serializer):
46 def serialize(self,
47 value, # type: Any
48 ) -> bytes:
49
50 return json.dumps(value, ensure_ascii=False).encode('utf-8')
51
52 def deserialize(self,
53 value # type: bytes
54 ) -> Any:
55
56 return json.loads(value.decode('utf-8'))

Callers 14

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
test_cluster_optionsMethod · 0.90

Calls

no outgoing calls

Tested by 5

test_cluster_optionsMethod · 0.72