Skip to content

Releases: feO2x/Light.Serialization

Release list

No more DTOs

Choose a tag to compare

@feO2x feO2x released this 05 Jul 07:55

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