JSON Values in Form Variables API

Hello there,

I’m using Camunda 7 in a Spring Boot Project but without any custom code. From another Backend I consume the REST API. I have Spin implemented.

My process instance variables looks like this:

In a User Task i wan’t to access all the variables so i don’t have any Inputs defined.

My Problem: If I want to fetch the form-variables via REST API i get the following result:

URL: /engine-rest/task/acf02cd3-c240-11ed-856d-0242ac190004/form-variables

{
    "itAccess": {
        "type": "Json",
        "value": {
            "array": false,
            "null": false,
            "object": true,
            "boolean": false,
            "number": false,
            "string": false,
            "value": false,
            "dataFormatName": "application/json",
            "nodeType": "OBJECT"
        },
        "valueInfo": {}
    },
    "meta": {
        "type": "Json",
        "value": {
            "array": false,
            "null": false,
            "object": true,
            "boolean": false,
            "number": false,
            "string": false,
            "value": false,
            "dataFormatName": "application/json",
            "nodeType": "OBJECT"
        },
        "valueInfo": {}
    },
    "user": {
        "type": "Json",
        "value": {
            "array": false,
            "null": false,
            "object": true,
            "boolean": false,
            "number": false,
            "string": false,
            "value": false,
            "dataFormatName": "application/json",
            "nodeType": "OBJECT"
        },
        "valueInfo": {}
    }
}

How can I get the JSON Object as Result?

I Helped myself:

the parameter /variables?deserializeValues=false does the trick.

Now i have Type JSON and the string :slight_smile:

2 Likes