JsonData¶
GetJsonData¶
JsonBlock& GetJsonData()
const JsonBlock& GetJsonData() const
Attempts to return this JsonData's JsonBlock data.
What does a JsonBlock-value represent? This:
{
"my_jsonblock": {
"value1": 5,
"value2": "hello"
}
}
If this JsonData is not of type JSON
, it will throw a JsonWrongDataTypeException.
You can check this via GetDataType()
.
Aliases¶
Alternative ways to call this function
myJsonData.AsJson;
Kinda-Aliases¶
Not an actual alias, but still noteworthy:
myJsonData["value1"]
is the same as calling myJsonData.GetJsonData().
Get
("value1")
.