c# - How to delete or remove the null value and field in JSON object which is returning by WCF service? -
i'm using wcf restful service homecoming json info other platform. have problem homecoming data. of field needn't. , didn't pass value field. in returning data, homecoming field:null . want remove or delete fields due maybe waist much gprs data.
i found .net has handle this. add together datamemberattribute fields: this: [datamember(emitdefaultvalue = false)] public string category;
hope can help others! happy coding, rocky
c# json wcf
No comments:
Post a Comment