C# 实体转为json字符串
Catalog cata = new Catalog();
cata.C_platformid = 0;
cata.C_isnav = 0;
cata.C_isvalid = 1;
string strJson = JsonConvert.SerializeObject(cata);
原文地址:https://www.cnblogs.com/woniucode/p/10684214.html
时间: 2024-10-31 05:45:52