Du kan prøve com.mongodb.util.JSON.serialize(Alerts.list()) Dette skulle returnere et JSON-array med dine underretninger