Sam Afshari's Notes
  • GitHub
  • Twitter/X
  • All posts
  • Ed
  • NuGets
  • POIWorld
  • RedCorners

Mono Frustrations: JSON Deserializer and Booleans - Wed, Jul 1, 2015

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.

Back to Home


© Sam Afshari 2024