Add 'remove' methods to Object and Array + unify 'set' methods

This commit is contained in:
Vyn 2024-11-22 17:53:00 +01:00
parent eb5191a722
commit fd034eff71
8 changed files with 109 additions and 26 deletions

View file

@ -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);