[backend] support view=json in /lastnotifications