code: def generate_json_paths(self):
          
          if isinstance(self.input_fields, basestring):
              try:
                  self.jsonpaths = parse(self.input_fields)
              except Exception as exception:
                  print "input_fields failed {}".format(self.input_fields)
                  raise exception
  
          elif isinstance(self.input_fields, types.ListType):
              self.jsonpaths = list()
              for input_field in self.input_fields:
                  self.jsonpaths.append(parse(input_field))
              if len(self.jsonpaths) == 1:
                  self.jsonpaths = self.jsonpaths[0]
docs: Given a scalar or ordered list of strings parse them to
          generate JSONPaths