Finally found the Object-to-JSON transformer that was in createTrial but shouldn't have been. everything works now.