Sign in Join
FPDoc Onlineexperiment

TJSONNumberType enumeration

In unit fpJson

Enumerate the different kind of numerical types.

Declaration

pascal
TJSONNumberType = (ntFloat,ntInteger,ntInt64,ntQWord)

Description

TJSONNumberType is used to enumerate the different kind of numerical types: JSON only has a single 'number' format. Depending on how the value was parsed, FPC tries to create a value that is as close to the original value as possible: this can be one of integer, int64 or TJSONFloatType (normally a double). The number types have a common ancestor, and they are distinguished by their NumberType value.

See also

Values

ntFloatFloating point value.
ntInteger32-bit Integer value.
ntInt6464-bit integer value.
ntQWord64-bit unsigned integer value.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.