Basically I want to extract JsonSchema from Json string at runtime(Can't use Tools), found no library to do this. Other way is to first Convert JSON to Class(Found one Open Source Code) then create JsonSchema using JSON.NET as below.
var generator = new JSchemaGenerator();
JSchema schema = generator.Generate(typeof(Rootobject));
But Rootobject class is not known at compile time, so I'm getting compile time error. Is there any other way to do this? Please help