class_docstr: Explanation class returned by explainers.
class_docstr_tok: ["Explanation","class","returned","by","explainers","."]
docstr: Serialize the explanation data and metadata into a `json` format.
  
  Returns
  -------
  String containing `json` representation of the explanation.
docstr_tok: ["Serialize","the","explanation","data","and","metadata","into","a","`","json","`","format",".","Returns","--","--","--","-","String","containing","`","json","`","representation","of","the","explanation","."]
code: def to_json(self) -> str:
      """
      Serialize the explanation data and metadata into a `json` format.
  
      Returns
      -------
      String containing `json` representation of the explanation.
      """
      return json.dumps(attr.asdict(self), cls=NumpyEncoder)
  
imports: import abc
  import json
  import os
  from collections import ChainMap
  from typing import Any, Union
  import logging
  from functools import partial
  import pprint
  import attr
  from alibi.saving import load_explainer, save_explainer, NumpyEncoder
  from alibi.version import __version__
label_desc: Use image node_id 2 for calling the Explanation obj's underlying member method code with example usage: obj.to_json() and returns: json