Updating a Map Object Variable in ProcessInstance

We have a requirement to update the java.util.TreeMap object using Camunda APIs in NodeJS.
Example:
{“Upgrade Template”,“validationTmpl”:“Validation Template”,“backupTmpl”:“Backup Template”}

Data Format: Serialization Data Format: application/x-java-serialized-object

Please let us know if there is a camunda api to update this object. Also if there is any serialization/deserialization api as well to used in this case.

Thanks.

You can refer this docs for serialization.

https://docs.camunda.org/manual/7.4/user-guide/data-formats/json/#serializing-process-variables

https://docs.camunda.org/manual/7.10/user-guide/process-engine/variables/#object-value-serialization