MCPcopy
hub / github.com/pallets/flask / json_dumps

Method json_dumps

src/flask/testing.py:88–94  ·  view source on GitHub ↗

Serialize ``obj`` to a JSON-formatted string. The serialization will be configured according to the config associated with this EnvironBuilder's ``app``.

(self, obj: t.Any, **kwargs: t.Any)

Source from the content-addressed store, hash-verified

86 super().__init__(path, base_url, *args, **kwargs)
87
88 def json_dumps(self, obj: t.Any, **kwargs: t.Any) -> str:
89 """Serialize ``obj`` to a JSON-formatted string.
90
91 The serialization will be configured according to the config associated
92 with this EnvironBuilder's ``app``.
93 """
94 return self.app.json.dumps(obj, **kwargs)
95
96
97_werkzeug_version = ""

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected