Method: flask.testing.EnvironBuilder.json_dumps
Calls: 3, Exceptions: 0, Paths: 1Back
Path 1: 3 calls (1.0)
'€' (1) dict (1) {'name': 'Flask'} (1)
{} (3)
'"€"' (1) '{"drink": {"gin": 1, "tonic": true}, "price": 10}' (1) '{"name": "Flask"}' (1)
1def json_dumps(self, obj: t.Any, **kwargs: t.Any) -> str: # type: ignore
2 """Serialize ``obj`` to a JSON-formatted string.
3
4 The serialization will be configured according to the config associated
5 with this EnvironBuilder's ``app``.
6 """
7 return self.app.json.dumps(obj, **kwargs)