Enum FloatFormatHandling
Specifies float format handling options when writing special floating point numbers, e.g. System.Double.NaN, System.Double.PositiveInfinity and System.Double.NegativeInfinity with JsonWriter.
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
public enum FloatFormatHandling
Fields
Name | Description |
---|---|
DefaultValue | Write special floating point values as the property's default value in JSON, e.g. 0.0 for a System.Double property, null for a System.Nullable<T> property. |
String | Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". |
Symbol | Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. Note that this will produce non-valid JSON. |