class_docstr: An abstract class for all class-based plots
docstr: Serialize the plot as ``.json`` to the given path.
docstr_tok: ["Serialize","the","plot","as","``",".json","``","to","the","given","path","."]
code: def dump(self, path):
      """Serialize the plot as ``.json`` to the given path."""
      data = self._get_data()
      Path(path).write_text(json.dumps(data), encoding="utf-8")
  
imports: import json
  from pathlib import Path
  import abc
  from ..report.serialize import figure2html
label_desc: Use image node_id 8 for calling the AbstractPlot obj's underlying member method code with example usage: obj.dump(path) without return types