Skip to content
chaowlert edited this page Feb 2, 2020 · 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();

or

config.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