MCPcopy Create free account
hub / github.com/dot-agent/nextpy / json

Method json

nextpy/base.py:61–69  ·  view source on GitHub ↗

Convert the object to a json string. Returns: The object as a json string.

(self)

Source from the content-addressed store, hash-verified

59 extra = "allow"
60
61 def json(self) -> str:
62 """Convert the object to a json string.
63
64 Returns:
65 The object as a json string.
66 """
67 from nextpy.utils.serializers import serialize
68
69 return self.__config__.json_dumps(self.dict(), default=serialize)
70
71 def set(self, **kwargs):
72 """Set multiple fields and return the object.

Callers 15

_ndjson_updatesFunction · 0.80
emit_updateMethod · 0.80
serialize_baseFunction · 0.80
__init__Method · 0.80
_encode_varFunction · 0.80
prepare_deployFunction · 0.80
deployFunction · 0.80
list_deploymentsFunction · 0.80
fetch_tokenFunction · 0.80
get_deployment_statusFunction · 0.80
poll_deploy_milestonesFunction · 0.80
get_regionsFunction · 0.80

Calls 1

dictMethod · 0.45

Tested by 3

test_upload_fileFunction · 0.64
test_jsonFunction · 0.64
test_complex_jsonFunction · 0.64