Releases: feO2x/Light.Serialization
Releases · feO2x/Light.Serialization
Release list
No more DTOs
First release of Light.Serialization for JSON documents containing all the base functionality that is needed for a object graph to document serializer (and vice versa):
- Supported .NET primitive types:
- integer types (int, long, short, uint, ulong, ushort, byte, sbyte)
- floating point types (double, float, decimal)
- string, char
- bool
- Guid
- DateTime, DateTimeOffset, TimeSpan in ISO 8601 format
- Type
- Enum values
- Collection types are serialized to JSON arrays (and deserialized vice versa)
- Dictionaries and complex .NET types are serialized to JSON objects (and deserialized vice versa)
- Metadata Sections for JSON arrays and JSON objects (turned on by default)
- Object Reference Preservation ($id and $ref)
- Type information ($type)
- Domain-Friendly Name support for easy mapping between .NET Types and simple domain-specific names (and vice versa)
- No attributes to tell which members of a class should be serialized - use accessors or custom rules for that purpose. Keep the data access layer out of your business logic.
- Integration with Microsoft's Unity DI Container to inject values into deserialized objects that are not part of the JSON document (also through constructor injection - no property injection needed).