code: def to_json(self, indent=None):
      return json.loads(self.to_str(indent))
  
imports: import json
  import logging
  import os
  import pathlib
  import shutil
  import tempfile
  import time
  import uuid
  from typing import Dict
label_desc: Use image node_id 3 for calling the SessionInfo obj's underlying member method code with example usage: obj.to_json(indent) and returns: json