def METHOD_NAME(cls, limit, lastMonitor, jobAssignmentTag):
    """Get all the FTSJobs that are not in a final state
    :param limit: max number of jobs to retrieve
    :param jobAssignmentTag: tag to put in the DB
    :param lastMonitor: jobs monitored earlier than the given date
    :return: json list of FTS3Job
    """
    res = cls.fts3db.getActiveJobs(limit=limit, lastMonitor=lastMonitor, jobAssignmentTag=jobAssignmentTag)
    if not res["OK"]:
        return res
    activeJobs = res["Value"]
    activeJobsJSON = encode(activeJobs)
    return S_OK(activeJobsJSON)