------------------------------------------------------------------------------
| 841 | |
| 842 | //------------------------------------------------------------------------------ |
| 843 | void vtkObjectManager::UpdateObjectFromState(const std::string& state) |
| 844 | { |
| 845 | using json = nlohmann::json; |
| 846 | auto stateJson = json::parse(state, nullptr, false); |
| 847 | if (stateJson.is_discarded()) |
| 848 | { |
| 849 | vtkErrorMacro(<< "Failed to parse state=" << state); |
| 850 | return; |
| 851 | } |
| 852 | this->UpdateObjectFromState(stateJson); |
| 853 | } |
| 854 | |
| 855 | //------------------------------------------------------------------------------ |
| 856 | void vtkObjectManager::UpdateObjectFromState(const nlohmann::json& stateJson) |