This project has moved. For the latest updates, please go here.

Function Literals as property values

Jul 15, 2009 at 5: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 6, 2010 at 11:02 PM

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