5

I am using azure mobile service (backend sdk 1.x) and I serialize table objects to Json.

config.Formatters.JsonFormatter.SerializerSettings.TypeNameHandling = TypeNameHandling.Objects;

I would like to have $type names serialized with each object. This used to work, until i started using Json.net in the other class directly. Now every time i get json from controller, $type property is there but it is empty.

I strongly presume that newtonsoft library is not properly bound to azure web stuff (I did some experiments with custom Json.net serializers and they are not getting called when TableController returns the result to the client).

Any ideas how to troubleshoot the problem?

2
  • "until I started using Json.net in the other class directly" -- What "other class" are you talking about? Nov 13, 2016 at 17:59
  • need more explanation.
    – Alok
    Feb 20, 2017 at 10:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.