code: def json_to_bulk(tc_data, value_fields, resource_type, resource_type_parent):
          
          if not isinstance(tc_data, list):
              tc_data = [tc_data]
  
          bulk_array = []
          for d in tc_data:
  
              # value
              values = []
              for field in value_fields:
                  if d.get(field) is not None:
                      values.append(d.get(field))
                      del d[field]
  
              if resource_type_parent in ['Group', 'Task', 'Victim']:
                  d['name'] = ' : '.join(values)
              elif resource_type_parent in ['Indicator']:
                  d['summary'] = ' : '.join(values)
  
              if 'owner' in d:
                  d['ownerName'] = d['owner']['name']
                  del d['owner']
  
              # type
              if d.get('type') is None:
                  d['type'] = resource_type
  
              bulk_array.append(d)
  
          return bulk_array
docs: Convert ThreatConnect JSON response to a Bulk Format.
  
          .. Attention:: This method is subject to frequent changes
  
          Args:
              tc_data (dictionary): Array of data returned from TC API call.
              value_fields (list): Field names that contain the "value" data.
              resource_type (string): The resource type of the tc_data provided.
              resource_type_parent (string): The resource parent type of the tc_data provided.
  
          Returns:
              (list): A dictionary representing a TCEntityArray