Infers the datatype of a value that declared none, from its JSON type.
A number is a double only when its source text has a fractional part or
an exponent, so 5.0 needs text to be told from 5. A string is never
sniffed for anything but a string.
Parameters
raw: any
the value as JSON.parse produced it
text: any
the value's original source text, where recoverable
Returns string
a datatype URI, or null for a value of no inferable type
Infers the datatype of a value that declared none, from its JSON type.
A number is a double only when its source text has a fractional part or an exponent, so
5.0needstextto be told from5. A string is never sniffed for anything but a string.