before json view