Tests for JSON view format.