manatee.json

Serializing Manatee.Json in .NET Core 3

半腔热情 提交于 2020-01-25 10:14:08
问题 Background I want to provide some JsonSchema from my .NET Core 3 application, as well as other objects serialized into JSON. Since Manatee.Json is frequently updated and provides good support for JsonSchema, they are my preferred choice. At the same time, .NET Core 3 provides excellent support for returning objects with magic that transform them into JSON documents. Example: public ActionResult<MyFancyClass> MyFancyAction() { return new MyFancyClass { Property1 = "property 1 content",