-
Notifications
You must be signed in to change notification settings - Fork 333
Json.net
chaowlert edited this page Feb 2, 2020
·
3 revisions
Json.net conversion supports
PM> Install-Package Mapster.JsonNet
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
- Configuration
- Config inheritance
- Config instance
- Config location
- Config validation & compilation
- Config for nested mapping
- Custom member matching logic
- Constructor mapping
- Before & after mapping
- Setting values
- Shallow & merge mapping
- Recursive & object references
- Custom conversion logic
- Inheritance