code: def read_json_with_comments(json_path):
      """for backward compat."""
      # fallback to json
      with fsspec.open(json_path, "r", encoding="utf-8") as f:
          input_str = f.read()
      # handle comments but not urls with //
      input_str = re.sub(
          r"(\"(?:[^\"\\]|\\.)*\")|(/\*(?:.|[\\n\\r])*?\*/)|(//.*)",
          lambda m: m.group(1) or m.group(2) or "",
          input_str,
      )
      return json.loads(input_str)
  
file_path: TTS/TTS/config/__init__.py
imports: import json
  import os
  import re
  from typing import Dict
  import fsspec
  import yaml
  from coqpit import Coqpit
  from TTS.config.shared_configs import *
  from TTS.utils.generic_utils import find_module
label_desc: Use image node_id 1 for calling a global function with example usage: read_json_with_comments(json_path) and returns: json