using System;
using Newtonsoft.Json;
using NJsonSchema;
public class Program
{
public static void Main()
Console.WriteLine("Njsonschema");
TestUsingTypedClass();
}
static void TestUsingTypedClass()
var person=new Person
id=1,
name ="Bill Smith"
};
var json = JsonConvert.SerializeObject(person);
Console.WriteLine(json);
var schema = JsonSchema4.FromTypeAsync<Person>().Result;
json=schema.ToJson(); //raise error: Fatal Error: Memory usage limit was exceeded
}//program
class Person
public int id {get;set;}
public string name {get;set;}