| 544 | } |
| 545 | |
| 546 | void setOwnedString(StringNode* s) { |
| 547 | ARDUINOJSON_ASSERT(type_ == VariantType::Null); // must call clear() first |
| 548 | ARDUINOJSON_ASSERT(s); |
| 549 | type_ = VariantType::OwnedString; |
| 550 | content_.asOwnedString = s; |
| 551 | } |
| 552 | |
| 553 | size_t size(const ResourceManager* resources) const { |
| 554 | if (isObject()) |