Send json to view