class_docstr: Parse HOCON files: https://github.com/typesafehub/config/blob/master/HOCON.md
class_docstr_tok: ["Parse","HOCON","files",":","https",":","\/\/github.com\/typesafehub\/config\/blob\/master\/HOCON.md"]
docstr: Convert HOCON input into a JSON output
  
  :return: JSON string representation
  :type return: basestring
docstr_tok: ["Convert","HOCON","input","into","a","JSON","output",":","return",":","JSON","string","representation",":","type","return",":","basestring"]
code: def _find_substitutions(cls, item):
      """Convert HOCON input into a JSON output
  
      :return: JSON string representation
      :type return: basestring
      """
      if isinstance(item, ConfigValues):
          return item.get_substitutions()
  
      substitutions = []
      elements = []
      if isinstance(item, ConfigTree):
          elements = item.values()
      elif isinstance(item, list):
          elements = item
  
      for child in elements:
          substitutions += cls._find_substitutions(child)
      return substitutions
  
imports: import itertools
  import re
  import os
  import socket
  import contextlib
  import codecs
  from datetime import timedelta
  from pyparsing import Forward, Keyword, QuotedString, Word, Literal, Suppress, Regex, Optional, SkipTo, ZeroOrMore, Group, lineno, col, TokenConverter, replaceWith, alphanums, alphas8bit, ParseSyntaxException, StringEnd
  from pyparsing import ParserElement
  from .config_tree import ConfigTree, ConfigSubstitution, ConfigList, ConfigValues, ConfigUnquotedString, ConfigInclude, NoneValue, ConfigQuotedString
  from .exceptions import ConfigSubstitutionException, ConfigMissingException, ConfigException
  import logging
  import copy
label_desc: Use image node_id 5 for calling the ConfigParser obj's underlying member method code with example usage: obj._find_substitutions(cls, item) and returns: substitutions, item