how to convert string to an object in javascript code example Example: js string to object JSON.parse()