Method: flask.json.tag.JSONTag.tag
Calls: 36, Exceptions: 0, Paths: 1Back
Path 1: 36 calls (1.0)
Markup (6) (1, 2, 3) (5) ('message', 'Hello World') (4) ('error', 'Hello World') (4) tuple (4) bytes (3) UUID (2) datetime (2) {' t': 'not-a-tuple'} (...
dict (22) {' m': 'Testing'} (4) {' b': '/w=='} (2) {' m': ''} (2) {' u': '032dacabf02144a086ef406372be5f0a'} (1) {' d': 'Thu, 03 Aug 20...
1def tag(self, value: t.Any) -> t.Any:
2 """Convert the value to a valid JSON type and add the tag structure
3 around it."""
4 return {self.key: self.to_json(value)}