If you were to put quotes around the keys, it would become valid JSON, and then you could use JSON.parse to evaluate the string.
Otherwise, you're limited to eval, which is not the best option because it parses and executes more than just data structures.