Custom Web Api Json Converter For A Single Property

Tuesday, September 23, 2014

The web is well documented regarding usage of a custom Json Converter. Basically the idea is to inherit from JsonConvert, explore the current serialized type and use your own custom behavior when serializing. The custom Json Convert can be used explicitly by calling Json.Convert or implicitly by registering in Application_Start. Explicit: Implicit: The implicit registration will serialize every object that contains the specified type (DateTime? in our example) using the MyJsonDateTimeConverter Converter. The explicit usage will only affect the current serialized value. The other case Both technics won't work in the following case; I need the converter to work only on a specified property, but I cannot...
tags: , , ,
no comments

Working around Permissions BUG FacebookAuthorize attribute

Saturday, June 14, 2014

“Over the past several months Facebook made changes to their application development APIs that were incompatible with the MVC Facebook support.” says N. Taylor Mullen, a developer for the team in his latest blog post So it seems the latest sdk version ( is incompatible with the current Facebook API hence some features won’t work. One basic feature mentioned in the tutorial for using the SDK is the FacebookAuthorize attribute which allows asking permissions for the Facebook app. Could not convert string to integer: installed. Path 'data.permission', line 1, position 34. It seems people are aware of the problem but still haven't...
tags: , , ,