-Added even more detail to no root XML element exception message when converting JSON to XML. Seriously, if you still get stuck here you're an idiot
-Added NullValueHandling, DefaultValueHandling and ReferenceLoopHandling to JsonPropertyAttribute -Change JsonMemberMapping from a struct to a class. Now has too many properties for a struct
This commit is contained in:
@@ -125,6 +125,14 @@ namespace Newtonsoft.Json.Tests.Schema
|
||||
}
|
||||
";
|
||||
|
||||
//JsonSchema schema;
|
||||
|
||||
//using (JsonTextReader reader = new JsonTextReader(new StringReader(schemaJson)))
|
||||
//{
|
||||
// JsonSchemaBuilder builder = new JsonSchemaBuilder(new JsonSchemaResolver());
|
||||
// schema = builder.Parse(reader);
|
||||
//}
|
||||
|
||||
JsonSchema schema = JsonSchema.Parse(schemaJson);
|
||||
|
||||
JObject person = JObject.Parse(@"{
|
||||
|
||||
Reference in New Issue
Block a user