NonConformingFloatDecodingStrategy

public enum NonConformingFloatDecodingStrategy

The strategy to use for non-JSON-conforming floating-point values (IEEE 754 infinity and NaN).

  • Throw upon encountering non-conforming values. This is the default strategy.

    Declaration

    Swift

    case `throw`
  • Decode the values from the given representation strings.

    Declaration

    Swift

    case convertFromString(positiveInfinity: String, negativeInfinity: String, nan: String)