is a class within the Flask project under the
JSONEncoder is the default JSON
encoder for Flask and was designed to handle more types than Python's
standard library json module.
is another callable from the
flask.json package with code examples.
The Flask-Security-Too project is provided as open source under the MIT license.
# core.py from datetime import datetime, timedelta import re import typing as t import warnings import pkg_resources from flask import _request_ctx_stack, current_app from flask.json import JSONEncoder from flask_login import AnonymousUserMixin, LoginManager from flask_login import UserMixin as BaseUserMixin from flask_login import current_user from flask_principal import Identity, Principal, RoleNeed, UserNeed, identity_loaded from flask_wtf import FlaskForm from itsdangerous import URLSafeTimedSerializer from passlib.context import CryptContext from werkzeug.datastructures import ImmutableList from werkzeug.local import LocalProxy from .babel import FsDomain from .decorators import ( default_reauthn_handler, default_unauthn_handler, default_unauthz_handler, ) from .forms import ( ChangePasswordForm, ConfirmRegisterForm, ForgotPasswordForm, LoginForm, PasswordlessLoginForm, RegisterForm, RegisterFormMixin, ## ... source file continues with no further JSONEncoder examples...