GetJSONQuad()

Syntax

Result.q = GetJSONQuad(JSONValue)
Description
Return the value of a JSON value of type #PB_JSON_Number as an quad 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 an quad.

Example

  ParseJSON(0, "[1, 2, 3, 4, 5]")
    
  For i = 0 To JSONArraySize(JSONValue(0)) - 1
    Debug GetJSONQuad(GetJSONElement(JSONValue(0), i))
  Next i

See Also

SetJSONDouble(), SetJSONFloat(), SetJSONInteger(), SetJSONQuad(), GetJSONBoolean(), GetJSONDouble(), GetJSONElement(), GetJSONFloat(), GetJSONInteger(), GetJSONMember(), GetJSONString(), JSONType()

Supported OS

All

<- GetJSONMember() - Json Index - GetJSONString() ->