Hi,
I was trying to start the camunda process with JSON variable payload
{
"variables": {
"json": {
"value": {
"test": "abc",
"test2": "xyz"
},
"valueInfo": {
"objectTypeName": "com.fasterxml.jackson.databind.node.ArrayNode",
"serializationDataFormat": "application/json"
}
}
},
"businessKey": "myKey",
"withVariablesInReturn": true
}
The response I got is
"variables": {
"returnCode": {
"type": "Integer",
"value": 200,
"valueInfo": {}
},
"json": {
"type": "Object",
"value": "rO0ABXNyABdqYXZhLnV0aWwuTGlua2VkSGFzaE1hcDTATlwQbMD7AgABWgALYWNjZXNzT3JkZXJ4cgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAADdwgAAAAEAAAAAnQABHRlc3R0AANhYmN0AAV0ZXN0MnQAA3h5engA",
"valueInfo": {
"objectTypeName": "java.util.LinkedHashMap",
"serializationDataFormat": "application/x-java-serialized-object"
}
},
"outputResponse": {
"type": "Null",
"value": null,
"valueInfo": {}
}
}
When I try to get the JSON value
var outputJSON =execution.getVariable("json");
which is returning me
{test=abc, test2=xyz}
instead of {“test”:“abc”, “test2”:“xyz”}
Is it possible to get the actual JSON what I have sent? If not how to parse this output using Javascript?