Package com.azure.json
Class JsonOptions
java.lang.Object
com.azure.json.JsonOptions
Contains configuration options for creating a
JsonReader or JsonWriter.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether non-numeric numbers such asNaNandINFand-INFare supported.setNonNumericNumbersSupported(boolean nonNumericNumbersSupported) Sets whether non-numeric numbers such asNaNandINFand-INFare supported.
-
Constructor Details
-
JsonOptions
public JsonOptions()Creates an instance ofJsonOptions.
-
-
Method Details
-
isNonNumericNumbersSupported
public boolean isNonNumericNumbersSupported()Whether non-numeric numbers such asNaNandINFand-INFare supported.By default, this is configured to true.
- Returns:
- Whether non-numeric numbers are supported.
-
setNonNumericNumbersSupported
Sets whether non-numeric numbers such asNaNandINFand-INFare supported.By default, this is configured to true.
- Parameters:
nonNumericNumbersSupported- Whether non-numeric numbers are supported.- Returns:
- The updated JsonOptions object.
-