Json.Net(Newtownsoft)是否支持#" link"解析度?

时间:2015-10-14 15:50:38

标签: json json.net json-deserialization

是否有处理以下场景的原生支持或明显的扩展点?

JSON

{
  "big": {
    "config": {
      "goes": {
        "deep": "#/another/value"
      }
    }
  },
  "another": {
    "value": [
       "18.4",
       "99.63"
    ]
  }
}

POCO

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建议它,但我不知道该怎么称呼它所以我不知道如何开始搜索它。

而且......尽管我可以使用反射编写一个基本版本,但我宁愿使用可用的内容或有意义的扩展点。

0 个答案:

没有答案
相关问题