是否有处理以下场景的原生支持或明显的扩展点?
{
"big": {
"config": {
"goes": {
"deep": "#/another/value"
}
}
},
"another": {
"value": [
"18.4",
"99.63"
]
}
}
public class MyPoco
{
public BigPoco Big { get; set; }
public AnotherPoco Another { get; set; }
}
public class BigPoco { public ConfigPoco Config { get; set; } }
public class ConfigPoco { public GoesPoco Goes { get; set; } }
public class GoesPoco
{
public List<decimal> Deep { get; set; }
}
public class AnotherPoco
{
public List<decimal> Value { get; set; }
}
我喜欢它并且VS使用#/path/to/key
格式使用Intellisense建议它,但我不知道该怎么称呼它所以我不知道如何开始搜索它。
而且......尽管我可以使用反射编写一个基本版本,但我宁愿使用可用的内容或有意义的扩展点。