JsonData¶
GetArrayData¶
JsonArray& GetArrayData()
const JsonArray& GetArrayData() const
Attempts to return this JsonData's JsonArray data.
What does a JsonArray-value represent? This:
{
"my_jsonarray": [
1,
2,
3,
"put any json values here",
"even complex ones like other arrays, or JsonBlocks"
]
}
If this JsonData is not of type ARRAY, it will throw a JsonWrongDataTypeException.
You can check this via GetDataType().
Aliases¶
Alternative ways to call this function
myJsonData.AsArray;
Kinda-Aliases¶
Not an actual alias, but still noteworthy:
myJsonData[5] is the same as calling myJsonData.GetArrayData()[5];