class documentation
class JSONTag: (source)
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
Base class for defining type tags for :class:`TaggedJSONSerializer`.
Method | __init__ |
Create a tagger for the given serializer. |
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 |
Convert the Python object to an object that is a valid JSON type. The tag will be added later. |
Method | to |
Convert the JSON representation back to the correct type. The tag will already be removed. |
Class Variable | __slots__ |
Undocumented |
Class Variable | key |
Undocumented |
Instance Variable | serializer |
Undocumented |
overridden in
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
Check if the given value should be tagged by this tag.
overridden in
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
Convert the Python object to an object that is a valid JSON type. The tag will be added later.
overridden in
flask.json.tag.TagBytes
, flask.json.tag.TagDateTime
, flask.json.tag.TagDict
, flask.json.tag.TagMarkup
, flask.json.tag.TagTuple
, flask.json.tag.TagUUID
Convert the JSON representation back to the correct type. The tag will already be removed.
overridden in
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