Added logging to SendJson