Display amount including tax on Offline Contribution

can we do $this->assign('taxRates', json_encode($taxRates));
or
$this->assign('taxRates', json_encode(CRM_Core_PseudoConstant::getTaxRates()));
?