| 246 | } |
| 247 | |
| 248 | void absorb(const JSONDoc& doc) { |
| 249 | if (wpObj == nullptr) |
| 250 | throw std::runtime_error("JSON Object not writable"); |
| 251 | |
| 252 | if (doc.pObj == nullptr) |
| 253 | throw std::runtime_error("JSON Object not readable"); |
| 254 | |
| 255 | mergeInto(*wpObj, *doc.pObj); |
| 256 | } |
| 257 | |
| 258 | // Returns whether or not a "path" exists. |
| 259 | // Returns true if all elements along path exist |
no outgoing calls
no test coverage detected