Click or drag to resize

ConventionConfigurationSerializeTypeAsJson Property

Gets or sets a method that determines if the given type should be serialized to JSON. The default is to serialize types to JSON if they can't be stored in any other Sphinx attribute type.

Namespace:  SphinxConnector.FluentApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.3.0
Syntax
public Func<Type, bool> SerializeTypeAsJson { get; set; }

Property Value

Type: FuncType, Boolean
Remarks
By default, the following types are not serialized to JSON :
  • Numeric types like int, float, decimal
  • Strings
  • Generic enumerables with numeric types
  • Guid's
See Also