c# - custom json.net serializer/deserializer for special key of ExpandoObject -


i want serialize , deserialize expandoobject non-trivial values. values of expandoobject contain objects properties leading circular references.

i wrote custom serializer/deserializer these objects. these objects occur on many places within expandoobject (also nested, not on root-level). have same key! want deserializer take custom deserializer every property of expandoobject of key.

for example:

{     "a": 12.5,     "b": "hello world",     "special": { /* ... */ },     "c": -4,     "d":         {             "x": "test",             "special":  { /* ... */ },             "y": 152         },     "e": 9053 } 

i want every property special deserialized custom deserializer class. else should handled default deserializer.

am on right track handle kind of problem? if yes, how can achieve using json.net?


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -