def METHOD_NAME(shape, payload_size):
    one_record = _generate_json_recursively(shape)
    if payload_size:
        per_record_size = len(str(one_record))
        num_records = _get_num_records_for_json_payload(payload_size, per_record_size)
        records = []
        for record in range(0, num_records):
            records.append(one_record)
        return str(records)
    else:
        return str(one_record)