class JSONTag:
Known subclasses: flask.json.tag.PassDict
, flask.json.tag.PassList
, flask.json.tag.TagBytes
, flask.json.tag.TagDateTime
, flask.json.tag.TagDict
, flask.json.tag.TagMarkup
, flask.json.tag.TagTuple
, flask.json.tag.TagUUID
TaggedJSONSerializer
.Method | check |
Check if the given value should be tagged by this tag. |
Method | tag |
Convert the value to a valid JSON type and add the tag structure around it. |
Method | to_json |
Convert the Python object to an object that is a valid JSON type. The tag will be added later. |
Method | to_python |
Convert the JSON representation back to the correct type. The tag will already be removed. |
Class Variable | key |
Undocumented |
Method | __init__ |
Create a tagger for the given serializer. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | serializer |
Undocumented |
flask.json.tag.PassDict
, flask.json.tag.PassList
, flask.json.tag.TagBytes
, flask.json.tag.TagDateTime
, flask.json.tag.TagDict
, flask.json.tag.TagMarkup
, flask.json.tag.TagTuple
, flask.json.tag.TagUUID
Parameters | |
value:t.Any | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
value:t.Any | Undocumented |
Returns | |
t.Any | Undocumented |
flask.json.tag.PassDict
, flask.json.tag.PassList
, flask.json.tag.TagBytes
, flask.json.tag.TagDateTime
, flask.json.tag.TagDict
, flask.json.tag.TagMarkup
, flask.json.tag.TagTuple
, flask.json.tag.TagUUID
Parameters | |
value:t.Any | Undocumented |
Returns | |
t.Any | Undocumented |
flask.json.tag.TagBytes
, flask.json.tag.TagDateTime
, flask.json.tag.TagDict
, flask.json.tag.TagMarkup
, flask.json.tag.TagTuple
, flask.json.tag.TagUUID
Parameters | |
value:t.Any | Undocumented |
Returns | |
t.Any | Undocumented |
t.Optional[ str]
=
flask.json.tag.TagBytes
, flask.json.tag.TagDateTime
, flask.json.tag.TagDict
, flask.json.tag.TagMarkup
, flask.json.tag.TagTuple
, flask.json.tag.TagUUID
Undocumented
Parameters | |
serializer:TaggedJSONSerializer | Undocumented |