How do I send the value of a variable as a list via REST API?

Hello,

I want to start a process with a variable whose value is a list via the Flowable REST-API /process-api/runtime/process-instances. This is how the request looks like:

{
   "processDefinitionId":"processDefinitionId",
   "returnVariables":true,
   "variables": [
		 {
        "name":"ids",
        "value": ["1", "2"]
		 }
   ]
}

The problem now is, that the response after starting the process via REST-API is missing the value of my variable ids:

...
	"variables": [
		{
			"name": "ids",
			"type": "serializable",
			"value": null,
			"valueUrl": "https://xxxx/process-api/runtime/process-instances/PRC-451f4bb9-8e19-11ef-90f6-beb87f23a23a/variables/nodeIds/data",
			"scope": "local"
		},
		....

Can someone explain me why?
Thanks in advance.

Hey @editheast,

Why do’t you use a JSON array node for this? So something like

{
   "processDefinitionId":"processDefinitionId",
   "returnVariables":true,
   "variables": [
		 {
        "name":"ids",
        "type":"json",
        "value": ["1", "2"]
		 }
   ]
}

Cheers,
Filip

I swear I tried it also with json as type, but apparently I missed something, because now it works.
Thanks!