更新时间:2021-12-02 21:30:50
依赖dynamic
的另一种方法是使用JSON.net捕获和解析JSON,它旨在查询JSON数据,实际上比使用dynamic
An alternative to relying on the dynamic
is to capture and parse the JSON with JSON.net, it's designed for querying json data and is really much safer than using dynamic
反序列化为类:
http://dotnetbyexample.blogspot.ca/2012/02/json-deserialization-with-jsonnet-class.html