code: def convert_json_node(self, json_input):
          
          if type(json_input) in text_types:
              if self.escape:
                  return cgi.escape(text(json_input))
              else:
                  return text(json_input)
          if hasattr(json_input, 'items'):
              return self.convert_object(json_input)
          if hasattr(json_input, '__iter__') and hasattr(json_input, '__getitem__'):
              return self.convert_list(json_input)
          return text(json_input)
docs: Dispatch JSON input according to the outermost type and process it
              to generate the super awesome HTML format.
              We try to adhere to duck typing such that users can just pass all kinds
              of funky objects to json2html that *behave* like dicts and lists and other
              basic JSON types.