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

Is it possible to deserialize JSON with funciton as a property value?

Jun 24, 2015 at 9:42 PM
I have properties in my JSON similar to this one

'I18N_PLURAL_RULES': function(n) { return (n == 1) ? 'one' : 'other'; }

DeserializeObject chocks on this saying that it cannot parse boolean value. Of course, because it is not boolean. Is it possible to tell deserializer that it should handle "function ..."? If no, is there a way to extend the deserializer to use custom code to handle situations like this and deserialize such values into simple strings. Actually this is what I expected from the library. At least SimpleJson library is doing that.