Ensures that an Object exists at path and returns a JSONDoc that writes to it.
| 192 | |
| 193 | // Ensures that an Object exists at path and returns a JSONDoc that writes to it. |
| 194 | JSONDoc subDoc(std::string path, bool split = true) { |
| 195 | json_spirit::mValue& v = create(path, split); |
| 196 | if (v.type() != json_spirit::obj_type) |
| 197 | v = json_spirit::mObject(); |
| 198 | return JSONDoc(v.get_obj()); |
| 199 | } |
| 200 | |
| 201 | // Apply a merge operation to two values. Works for int, double, and string |
| 202 | template <typename T> |
no test coverage detected