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
Post a Comment