------------------------------------------------------------------------------
| 374 | |
| 375 | //------------------------------------------------------------------------------ |
| 376 | bool vtkObjectManager::RegisterState(const std::string& state) |
| 377 | { |
| 378 | using json = nlohmann::json; |
| 379 | auto stateJson = json::parse(state, nullptr, false); |
| 380 | if (stateJson.is_discarded()) |
| 381 | { |
| 382 | vtkErrorMacro(<< "Failed to parse state!"); |
| 383 | return false; |
| 384 | } |
| 385 | vtkVLog(this->GetObjectManagerLogVerbosity(), << "Registering state: " << stateJson.dump()); |
| 386 | return this->RegisterState(stateJson); |
| 387 | } |
| 388 | |
| 389 | //------------------------------------------------------------------------------ |
| 390 | bool vtkObjectManager::RegisterState(const nlohmann::json& stateJson) |