JsonData¶
GetIntData¶
long long int GetIntData() const
Attempts to return this JsonData's integer data.
If this JsonData is not of type INTEGER, but of type FLOAT, it will return the float value casted to int.
If this JsonData is neither of type INTEGER, nor FLOAT, it will throw a JsonWrongDataTypeException.
You can check this via GetDataType().
Aliases¶
Alternative ways to call this function
myJsonData.AsInt;int i = myJsonData;