mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
json::JObject added method putArray
This commit is contained in:
parent
c8a283c645
commit
647662b0d3
2 changed files with 7 additions and 0 deletions
|
|
@ -295,6 +295,12 @@ JObject& JObject::put(string key, bool value){
|
|||
return *this;
|
||||
}
|
||||
|
||||
JArray& JObject::putArray(std::string key) {
|
||||
JArray* arr = new JArray();
|
||||
put(key, arr);
|
||||
return *arr;
|
||||
}
|
||||
|
||||
bool JObject::has(string key) {
|
||||
return map.find(key) != map.end();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue