code: def __init__(
      self,
      *,
      buffers: list[Buffer] = [],
      threshold: int = 100,
      indent: int | None = None,
      separators: tuple[str, str] | None = None,
  ):
      super().__init__(
          sort_keys=False,
          allow_nan=False,
          indent=indent,
          separators=separators,
      )
      self._buffers = {buf.id: buf for buf in buffers}
      self._threshold = threshold
  
file_path: bokeh/src/bokeh/core/json_encoder.py
imports: from __future__ import annotations
  import logging
  from json import JSONEncoder
  from typing import Any
  from ..settings import settings
  from .serialization import Buffer, Serialized
label_desc: Use image node_id 1 to create a new PayloadEncoder object from inherited base classes: JSONEncoder with example: obj = PayloadEncoder()