I have this code stored as string:
{
"func": function (field) {
var date = getDate(field);
return date != -1;
},
"somethingElse": "Message",
"somethingElse2": "Message2"
}
Is there a way to convert it to an object? JSON.parse don't allow functions.