class_docstr: A JSON encoder that accepts b64 (and other *ascii*) bytestrings.
docstr: Get the default value of an object.
docstr_tok: ["Get","the","default","value","of","an","object","."]
code: def default(self, obj):
      """Get the default value of an object."""
      if isinstance(obj, bytes):
          return obj.decode("ascii")
      return json.JSONEncoder.default(self, obj)
  
file_path: nbformat/nbformat/v3/nbjson.py
imports: from __future__ import annotations
  import copy
  import json
  from .nbbase import from_dict
  from .rwbase import NotebookReader, NotebookWriter, rejoin_lines, split_lines, strip_transient
label_desc: Use image node_id 1 for calling the BytesEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: json, obj