for example my json string is like this :
{
"v1" : [],
"v2": 2,
"v3": f()
}
Now the context in which I need to decode this has a definition of f and f() gives right answer in that context(checked via debugger). But JSON.parse(jsonstring) gives me Unexpected token. eval also gives error. What should I do?
See an example Here