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

Method from_json

couchbase/logic/views.py:126–132  ·  view source on GitHub ↗
(cls, json_data: Dict[str, Any])

Source from the content-addressed store, hash-verified

124
125 @classmethod
126 def from_json(cls, json_data: Dict[str, Any]) -> ViewRow:
127 output = cls(id=json_data.get('id', None))
128 if 'key' in json_data:
129 output.key = json.loads(json_data['key'])
130 if 'value' in json_data:
131 output.value = json.loads(json_data['value'])
132 return output
133
134
135class ViewQuery:

Callers 6

_get_next_rowMethod · 0.45
_get_next_rowMethod · 0.45
get_design_documentMethod · 0.45
_get_next_rowMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 1