class_docstr: Explanation class returned by explainers.
class_docstr_tok: ["Explanation","class","returned","by","explainers","."]
docstr: Create an instance of an `Explanation` class using a `json` representation of the `Explanation`.
  
  Parameters
  ----------
  jsonrepr
      `json` representation of an explanation.
  
  Returns
  -------
  An Explanation object.
docstr_tok: ["Create","an","instance","of","an","`","Explanation","`","class","using","a","`","json","`","representation","of","the","`","Explanation","`",".","Parameters","--","--","--","--","--","jsonrepr","`","json","`","representation","of","an","explanation",".","Returns","--","--","--","-","An","Explanation","object","."]
code: def from_json(cls, jsonrepr) -> "Explanation":
      """
      Create an instance of an `Explanation` class using a `json` representation of the `Explanation`.
  
      Parameters
      ----------
      jsonrepr
          `json` representation of an explanation.
  
      Returns
      -------
      An Explanation object.
      """
      dictrepr = json.loads(jsonrepr)
      try:
          meta = dictrepr["meta"]
          data = dictrepr["data"]
      except KeyError:
          logger.exception("Invalid explanation representation")
      return cls(meta=meta, data=data)
  
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 3 for calling the Explanation obj's underlying member method code with example usage: obj.from_json(cls, jsonrepr) and returns: cls