rewrite json view