mirror of
https://codeberg.org/vyn/rei-json.git
synced 2025-07-02 01:43:19 +00:00
Add 'remove' methods to Object and Array + unify 'set' methods
This commit is contained in:
parent
eb5191a722
commit
fd034eff71
8 changed files with 109 additions and 26 deletions
|
@ -32,8 +32,8 @@ int main() {
|
|||
array.push(false);
|
||||
array.pushNull();
|
||||
|
||||
objectJson.addObject("keyObject", std::move(obj));
|
||||
objectJson.addArray("keyArray", std::move(array));
|
||||
objectJson.set("keyObject", std::move(obj));
|
||||
objectJson.set("keyArray", std::move(array));
|
||||
|
||||
auto newJsonString = rei::json::toString(objectJson);
|
||||
std::println("{}\n", newJsonString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue