install-package newtonsoft.json
Console.WriteLine(JObject.FromObject(new
{
a = 0,
b = 42,
c = new
{
Value = 233
}
}));
OUTPUT
{
"a": 0,
"b": 42,
"c": {
"Value": 233
}
}
注:本文内容来自互联网,旨在为开发者提供分享、交流的平台。如有涉及文章版权等事宜,请你联系站长进行处理。