comment convertir un objet Doctrine en json

Je suis à l'aide de la Doctrine 1.2, comment pourrais-je obtenir l'objet de requête en json /format de tableau?

$user = Doctrine_Query::create()
->select('u.id, u.username, u.firstname, u.lastname')
->from('User u')
->orderby('u.id')
->execute();

source d'informationauteur cc96ai | 2009-12-19