Generate Method (type, rootSchemaNullable)

Json.NET

Json.NET - Quick Starts & API Documentation Generate Method (type, rootSchemaNullable)
NamespacesNewtonsoft.Json.SchemaJsonSchemaGeneratorGenerate(Type, Boolean)
Generate a JsonSchema from the specified type.
Declaration Syntax
C# Visual Basic Visual C++
public JsonSchema Generate(
	Type type,
	bool rootSchemaNullable
)
Public Function Generate ( _
	type As Type, _
	rootSchemaNullable As Boolean _
) As JsonSchema
public:
JsonSchema^ Generate(
	Type^ type, 
	bool rootSchemaNullable
)
Parameters
type (Type)
The type to generate a JsonSchema from.
rootSchemaNullable (Boolean)
Specify whether the generated root JsonSchema will be nullable.
Return Value
A JsonSchema generated from the specified type.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)