Class JsonOptions

java.lang.Object
com.azure.json.JsonOptions

public final class JsonOptions extends Object
Contains configuration options for creating a JsonReader or JsonWriter.
See Also:
  • Constructor Details

    • JsonOptions

      public JsonOptions()
      Creates an instance of JsonOptions.
  • Method Details

    • isNonNumericNumbersSupported

      public boolean isNonNumericNumbersSupported()
      Whether non-numeric numbers such as NaN and INF and -INF are supported.

      By default, this is configured to true.

      Returns:
      Whether non-numeric numbers are supported.
    • setNonNumericNumbersSupported

      public JsonOptions setNonNumericNumbersSupported(boolean nonNumericNumbersSupported)
      Sets whether non-numeric numbers such as NaN and INF and -INF are supported.

      By default, this is configured to true.

      Parameters:
      nonNumericNumbersSupported - Whether non-numeric numbers are supported.
      Returns:
      The updated JsonOptions object.