当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

Newtonsoft.Json

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Schema;

                        JObject jobj = JObject.Parse(respDataJson);
                        var generator = new JsonSchemaGenerator();
                        JsonSchema respDataJsonSchema = generator.Generate(typeof(CUPResponse));
                        if (jobj.IsValid(respDataJsonSchema))
{
}
View Code

 

posted @ 2019-09-17 10:08  hofmann  阅读(163)  评论(0编辑  收藏  举报