serialize-json
Installation
SKILL.md
Serialize JSON in ABP
Use IJsonSerializer in reusable application and infrastructure code. Volo.Abp.Json depends on Volo.Abp.Json.SystemTextJson, so System.Text.Json is the default provider while callers remain provider-independent.
When to Use
- Serialize an object to a JSON string outside the ASP.NET Core formatter pipeline.
- Deserialize to a generic type or a runtime
Type. - Share ABP's converters, date handling, and extra-property contract behavior.
- Configure the default System.Text.Json provider for consumers of
IJsonSerializer.
When Not to Use
- Configure controller response/request JSON — configure ASP.NET Core
JsonOptionsseparately; that is ASP.NET Core HTTP formatter configuration and is out of scope here. - Design distributed cache serialization and expiration policy — use distributed-caching-and-locking.
- Protect JSON as a secret — use encrypt-strings only when ABP-compatible reversible encryption is the requirement.