Changes done for fixing the callback notification to return JSON