JSON output of random and all pets views