fix JSON view issue