c# - wcf json web service -


What is the best way to create a JSON web service? We have another team that is using Java and they insist on using all communications JSON.

I've found this blog: And it shows that Microsoft's implementation is faulty with M $ specific nonsense.

If you use WCF and 3.5 frameworks, this can not be easy. When you mark your operation contracts with a WebGet attribute, simply set the Response format parameter to WebMessageFormat.Json. When the service is reused, then it will return the data using the data contrast jason serializer.

It is really helpful to mark POCO that you want to serial JSON as [Data Contract] and want to mark each serizable member as [Datmember]. . Otherwise, you end up with funky JSON, because Rick told in his blog post.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -