Mono Frustrations: JSON Deserializer and Booleans

The JavaScriptSerializer of Mono requires boolean values to be surrounded with quotes in order for the JSON strings to be deserialized; which is not the case in .NET framework.

Example:

  • {"isDefault": true} //Invalid in Mono. Valid in .NET
  • {"isDefault": "true"} //Valid in Mono.

Leave a Reply