tarruda / super-json

JSON serializer that handles Dates, RegExps, Functions or any other type you want
MIT License
20 stars 6 forks source link

Can't stringify previously parsed function #1

Open ghost opened 9 years ago

ghost commented 9 years ago
var myJson = superJson.Create();
myJson.stringify(myJson.parse(myJson.stringify({foo: function(a) {return a;}})));

This fails with: Error: Functions must have a working toString methodin order to be serialized

serviceontheweb commented 8 years ago

Same issue here. What to do? Please advice me something. I really need to solve this issue.