Home > Net >  Entity class can turn JSON shielding field?
Entity class can turn JSON shielding field?

Time:02-26

Model. The goods g=new model. The goods ();




JavaScriptSerializer JSS=new JavaScriptSerializer ();
R.R esponse. Write (JSS. Serialize (goodslist));


Turn this JSON will turn all the fields of goods entities, can in turn to filter out some sensitive field?

CodePudding user response:

https://www.cnblogs.com/yanweidie/p/4605212.html

Seven. Dynamic decision attribute is serialized

CodePudding user response:

I am using JavaScriptSerializer, don't want to use newtonsoft. Json
  • Related