Convert a string written in JSON format, into a JavaScript object.