Answer the question
In order to leave comments, you need to log in
How to replace default JSONSerializer with JSON.Net in WCF service?
Good afternoon!
Such a question: There is an external API that receives requests from partners and passes them to the internal one. Back respectively sends responses. Works using SOAP and REST - the internal API returns XML, which in the case of a rest call is re-serialized to JSON.
One of the calls to the internal API returns an object with one of its properties marked as IsReference=true. Google says this means that an object can contain properties - objects of the same class. The standard serializer on such an object dies, saying:
cannot be serialized to JSON because its IsReference setting is 'True'. The JSON format does not support references because there is no standardized format for representing references.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question