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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -