Skip to main content

JSONEncoder

Standard library class json.JSONEncoder View source
class JSONEncoder
class JSONEncoder
Fields 8
ensure_ascii bool
allow_nan bool
check_circular bool
sort_keys bool
pretty bool
indent str
separators Tuple[(str, str)]
max_depth int
Constructors 1
__init__
__init__(self: Self, *, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent = None, separators: Optional[Tuple[(str, str)]] = None, sort_keys: bool = False, max_depth: int = 512)
Defined in json
Methods 1
encode
encode(self: Self, value) -> str
Defined in json