title: how to convert a JavaScript literal object into Json object in PHP
body: <p>I have a JS literal object string such as <code>{name:{first:"George",middle:"William"},surname:"Washington"}</code> and I have to convert it in Json. How can I do it using PHP?</p>