c# - WCF mixing XML and JSON in one object -
i have object sent via wcf using datacontracts , xml.
would possible receive json encoded element inside xml object using datacontract , related attributes?
something like
<xmlroot>     <someelement>1</someelement>     <cuckoojson>{"foo" : "bar" }</cuckoojson> </xmlroot>   i know quite ugly , assume answer no wanted ask anyway.
as codecaster commented, there seems no solution achieve via datacontract attributes without using json serializer.
Comments
Post a Comment