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)) { }