using Newtonsoft.Json.Schema;
using System.Collections.Generic;
public static void Main()
var schemaGenerator = new Newtonsoft.Json.Schema.Generation.JSchemaGenerator();
var fooSchema = schemaGenerator.Generate(typeof(Foo)).ToString();
Console.WriteLine("Following is Foo Scehma{0}{1}",Environment.NewLine,fooSchema);
var barSchema = schemaGenerator.Generate(typeof(Bar)).ToString();
Console.WriteLine("Following is Bar Scehma{0}{1}",Environment.NewLine,barSchema);
[JsonObject(Description = "Something", Title = "Something", Id = "Something")]
public string Name{get;set;}
public string Address{get;set;}
public string Name{get;set;}
public string Address{get;set;}