I'm working with the Readline module in NodeJS and would like to parse the content of what the user wrote as code. Meaning if someone writes:
{
    name: "David",
    age: 34
}
I should be able to JSON.stringify(content) and get:
{
    "name": "David",
    "age": "34"
}
How can I convert a string in to actual code, so it can be interpreted as a JavaScript object, thus be converted in to JSON using JSON.stringify()?
