class_docstr: Extended JSONEncoder class to be used in save_page_grids.
class_docstr_tok: ["Extended","JSONEncoder","class","to","be","used","in","save_page_grids","."]
code: def default(self, o):
      try:
          iterable = iter(o)
      except TypeError:
          pass
      else:
          return list(iterable)
      # Let the base class default method raise the TypeError
      return super().default(self, o)
  
imports: import xml.etree.ElementTree
  from collections import OrderedDict
  import json
  import struct
  import imghdr
  import numpy
  from .geom import pt, rect
label_desc: Use image node_id 1 for calling the JSONEncoderPlus obj's underlying member method code with example usage: obj.default(o) and returns: super, list