Json encode data for notifications