------------------------------------------------------------------------------
| 415 | |
| 416 | //------------------------------------------------------------------------------ |
| 417 | std::string vtkObjectManager::Invoke( |
| 418 | vtkTypeUInt32 identifier, const std::string& methodName, const std::string& args) |
| 419 | { |
| 420 | using json = nlohmann::json; |
| 421 | auto argsJson = json::parse(args, nullptr, false); |
| 422 | if (argsJson.is_discarded()) |
| 423 | { |
| 424 | vtkErrorMacro(<< "Failed to parse state!"); |
| 425 | return {}; |
| 426 | } |
| 427 | return this->Invoke(identifier, methodName, argsJson).dump(); |
| 428 | } |
| 429 | |
| 430 | //------------------------------------------------------------------------------ |
| 431 | nlohmann::json vtkObjectManager::Invoke( |