This project has moved and is read-only. For the latest updates, please go here.

Function Literals as property values

Jul 15, 2009 at 6:17 AM


Does anyone know how to get this type of JSON string result?

{new test{ id: 1, init: function(t){return eval(t);}}

Notice that I want a function literal for my init property. Not "function(t)..."



Jul 7, 2010 at 12:02 AM

As far as I understand you seem to be looking for the same thing as in the following thread: