public function totalsJson($locale = null) { return $this->totals($locale)->toJson(JSON_PRETTY_PRINT); }