/////////////////////////////////////////////////////////////////////////// Note that all fields undergo encode/decode.
| 548 | //////////////////////////////////////////////////////////////////////////////// |
| 549 | // Note that all fields undergo encode/decode. |
| 550 | void Task::parseJSON(const std::string& line) { |
| 551 | // Parse the whole thing. |
| 552 | json::value* root = json::parse(line); |
| 553 | if (root && root->type() == json::j_object) parseJSON((json::object*)root); |
| 554 | |
| 555 | delete root; |
| 556 | } |
| 557 | |
| 558 | //////////////////////////////////////////////////////////////////////////////// |
| 559 | void Task::parseJSON(const json::object* root_obj) { |