How do I return clean JSON from a WCF Service?

前端 未结 6 1123
借酒劲吻你
借酒劲吻你 2020-11-22 07:19

I am trying to return some JSON from a WCF service. This service simply returns some content from my database. I can get the data. However, I am concerned about the format

6条回答
  •  猫巷女王i
    2020-11-22 07:51

    If you want nice json without hardcoding attributes into your service classes,

    use in your behavior config

提交回复
热议问题