Module jakarta.json
Package jakarta.json

Interface JsonNumber

All Superinterfaces:
JsonValue

public interface JsonNumber extends JsonValue
An immutable JSON number value.

Implementations may use a BigDecimal object to store the numeric value internally. The BigDecimal object can be constructed from the following types: int BigDecimal(int), long BigDecimal(long), BigInteger BigDecimal(BigInteger), double BigDecimal.valueOf(double), and String BigDecimal(String). Some of the method semantics in this class are defined using the BigDecimal semantics.