Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 481 Bytes

File metadata and controls

25 lines (16 loc) · 481 Bytes

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