A CSPro numeric value, created as a
numeric or as part of an object such as a
List, is generally represented as a
JSON number. However,
special values are serialized as strings:
When converting a JSON value to a CSPro numeric, the following conversions are supported:
The strings representing
special values are processed in a case-insensitive manner. For example, both
"MISSING" and
"miSSing" are converted to
missing.
Converting a
string that contains a number succeeds even if the number is followed by a non-number. That is, both
"40" and
"40 days" are converted to
40, but
"forty" results in an exception.
Converting an array or object results in an exception.