Apt sanitization for json objects and console.log call removed