class_docstr: To json serializer protocol.
class_docstr_tok: ["To","json","serializer","protocol","."]
docstr: Serialize into json.
docstr_tok: ["Serialize","into","json","."]
code: def serialize(
      self, **kwargs
  ) -> t.Union[t.Dict[t.Any, t.Any], t.List[t.Any]]:
      """Serialize into json."""
      raise NotImplementedError()
  
imports: import abc
  import io
  import typing
  import pandas
  from ipywidgets.widgets import Widget
  from pandas.io.formats.style import Styler
  from plotly.basedatatypes import BaseFigure
  from typing_extensions import Protocol, runtime_checkable
  from deepchecks.core import check_result
  from deepchecks.core.serialization import common
label_desc: Use image node_id 1 for calling the JsonSerializer obj's underlying member method code with example usage: obj.serialize() without return types