Fix view processing in JSON mode