GetJSONDouble()
Syntax
Result.d = GetJSONDouble(JSONValue)Description
Return the value of a JSON value of type #PB_JSON_Number as a double precision floating point value.
A JSON value can be set to a number with SetJSONDouble(), SetJSONFloat(), SetJSONInteger() or SetJSONQuad().
Parameters
JSONValue The JSON value. The value must be of type #PB_JSON_Number.
Return value
The number as a double.
Example
ParseJSON(0, "[1, 1.23, 1.23e-3]") Debug GetJSONDouble(GetJSONElement(JSONValue(0), 0)) Debug GetJSONDouble(GetJSONElement(JSONValue(0), 1)) Debug GetJSONDouble(GetJSONElement(JSONValue(0), 2))
See Also
SetJSONDouble(), SetJSONFloat(), SetJSONInteger(), SetJSONQuad(), GetJSONBoolean(), GetJSONElement(), GetJSONFloat(), GetJSONInteger(), GetJSONMember(), GetJSONString(), GetJSONQuad(), JSONType()
Supported OS
All