Jennifer Lopez has admitted that there was an "evolution that had to happen" before she was in a happy and healthy relationship.