【发布时间】:2020-10-26 20:35:21
【问题描述】:
示例客户端 JSON:
{
Foo: "Hello!"
Bar: {
a: 1,
b: 2
}
}
public class Foobar
{
public string Foo {get; set;}
/*[This will come in as a JSON object to the deserializer - just "flatten it" and return the JSON as a string] */
public string Bar {get; set;
}
预期的伪结果:
Foobar.Foo = "Hello!"
Foobar.Bar = "{a:1, b:2}"
【问题讨论】:
标签: c# asp.net-mvc .net-core json.net