class_docstr: Base class for check.
class_docstr_tok: ["Base","class","for","check","."]
docstr: Serialize check instance to JSON string.
docstr_tok: ["Serialize","check","instance","to","JSON","string","."]
code: def to_json(
      self,
      indent: int = 3,
      include_version: bool = True,
      include_defaults: bool = True,
  ) -> str:
      """Serialize check instance to JSON string."""
      conf = self.config(
          include_version=include_version,
          include_defaults=include_defaults,
      )
      return json.dumps(conf, indent=indent)
  
imports: import abc
  import enum
  import json
  from collections import OrderedDict
  from typing import Any, Callable, ClassVar, Dict, List, Optional, Type, Union, cast
  from typing_extensions import NotRequired, Self, TypedDict
  from deepchecks import __version__
  from deepchecks.core import check_result
  from deepchecks.core.condition import Condition, ConditionCategory, ConditionResult
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.function import initvars
  from deepchecks.utils.strings import get_docs_summary, split_camel_case
  from .None import common
label_desc: Use image node_id 10 for calling the BaseCheck obj's underlying member method code with example usage: obj.to_json(indent, include_version, include_defaults) and returns: json