class_docstr: Base class for defining type tags for :class:`TaggedJSONSerializer`.
class_docstr_tok: ["Base","class","for","defining","type","tags","for",":","class",":","`","TaggedJSONSerializer","`","."]
docstr: Convert the value to a valid JSON type and add the tag structure
  around it.
code: def tag(self, value: t.Any) -> t.Any:
      """Convert the value to a valid JSON type and add the tag structure
      around it."""
      return {self.key: self.to_json(value)}
  
imports: from __future__ import annotations
  import typing
  from base64 import b64decode
  from base64 import b64encode
  from datetime import datetime
  from uuid import UUID
  from markupsafe import Markup
  from werkzeug.http import http_date
  from werkzeug.http import parse_date
  from ..json import dumps
  from ..json import loads
label_desc: Use image node_id 5 for calling the JSONTag obj's underlying member method code with example usage: obj.tag(value) and returns: dict