Class JsonStreamConfig


  • public final class JsonStreamConfig
    extends java.lang.Object
    Configuration for json stream parsing and generation. Immutable.
    Since:
    3.1
    • Field Detail

      • DEFAULT

        public static final JsonStreamConfig DEFAULT
        The default stream configuration.
    • Method Detail

      • useBigDecimalForFloats

        public boolean useBigDecimalForFloats()
        Returns:
        Whether BigDecimals should be used for parsing floating-point json numbers.
      • withUseBigDecimalForFloats

        public JsonStreamConfig withUseBigDecimalForFloats​(boolean useBigDecimalForFloats)
        Whether all normal floating point literals should be represented as BigDecimal. Note that Float.NaN, Float.POSITIVE_INFINITY and Float.NEGATIVE_INFINITY may still be represented as float, if the input supports those literals.
        Parameters:
        useBigDecimalForFloats - The new value for useBigDecimalForFloats
        Returns:
        A copy of this config instance, with useBigDecimalForFloats set to the new value.
      • useBigIntegerForInts

        public boolean useBigIntegerForInts()
        Returns:
        Whether BigIntegers should be used for parsing integer json numbers.