Skip to content

Serialization

Start with JSON Serialization to choose the options you will pass to the serializer. Then follow the shape of your model: derived types for an interface or base-class value, the dictionary and date/time guides below for their converters, or Geospatial Serialization for geometry payloads.

Topic Description
JSON Serialization How to work with JSON serialization, polymorphism, and type discriminators.
Complex Key Dictionaries How to serialize and deserialize dictionaries with complex object keys.
Date & Time Only How to work with DateOnly & TimeOnly for serializers and converters.

For help choosing a geometry type before serializing it, see Geospatial Types.