开发者

WCF: how can we have services in which their output would be serialized by JSON method?

开发者 https://www.devze.com 2022-12-21 23:54 出处:网络
wcf: how can we have benefits on 开发者_如何学Cusing JSON serialization in our services?Maybe you can find some answers and references in json-or-soap-xml.You can use Json serialization starting from

wcf: how can we have benefits on 开发者_如何学Cusing JSON serialization in our services?


Maybe you can find some answers and references in json-or-soap-xml.


You can use Json serialization starting from framework 3.5 (use DataContractJsonSerializer).

I think, we have benefits on using all benefits of Json format vs XML. Of course, wcf service's clients have to support this format :).

Some benefits of JSON :

JSON is well suited to data-interchange than XML.

JSON is much simpler than XML.

JSON messages have less size than the same XML ones, because json is not a document markup language.

JSON is optimized for data.

more...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号