InvalidRequestException: Must provide 'null' or String value for value of SerializableValue type 'Object'

Hello,

I am trying to start a process using engine-rest and pass a hello_world object.
http://{{host}}/engine-rest/process-definition/key/hello-world/start

{
    "variables": {
        "hello_world": {
            "value": {"Hello": "world"},
            "type": "Object"
        }
    }
}

However I am getting an 400 with message:

{
  "type": "InvalidRequestException",
  "message": "Cannot instantiate process definition hello-world:28:bbb0edbc-4328-11ec-8a0e-42f3281eb576: Must provide 'null' or String value for value of SerializableValue type 'Object'."
}

Please help.

Hi @Vasyl_Herman
What if you replace "type": "Object" with "type": "String"?

Value must be serialized when it’s other than primitive types.

{
    "variables": {
        "hello_world": {
            "value": "{\"Hello\":\"world\"}",
            "type": "Json"
        }
    }
}

@Alex_Voloshyn, @aravindhrs
Thank you guys! It works well.

But what does “Must provide ‘null’ or String value for value of SerializableValue type ‘Object’” really mean? Do I need to include some logic in CamundaApplication class in order to use Object types?