I have an object that is sent via WCF using DataContracts and XML.
Would it be possible to receive an JSON encoded element inside this XML object only by using DataContract and related attributes?
Something like
<xmlroot>
<someElement>1</someElement>
<cuckooJson>{"foo" : "bar" }</cuckooJson>
</xmlroot>
I know this is quite ugly and assume the answer is no by I wanted to ask anyway.
As CodeCaster commented, there seems to be no solution to achieve this via DataContract attributes without using an extra JSON serializer.