Skip to content
chaowlert edited this page Apr 13, 2019 · 3 revisions

Mapster.JsonNet

Json.net conversion supports

Install

PM> Install-Package Mapster.JsonNet

Usage

Call EnableJsonMapping from your TypeAdapterConfig to enable Json.Net mapping.

TypeAdapterConfig.GlobalSettings.EnableJsonMapping();

This will allow

  • Mapping between Json.Net types (JToken, JArray, JObject) from/to POCO types
  • Serialize and deserialize Json.Net types from/to string
Clone this wiki locally