Hello
I try to create your example in my code what was describe here: https://docs.camunda.org/manual/latest/user-guide/data-formats/json/
I got Exception in thread "main" org.camunda.bpm.engine.ProcessEngineException: Cannot find serializer for value 'Value 'null' of type 'json''
. error do you have any idea what can be wrong?
Here is my code:
Map<String, Object> variables = new HashMap<String, Object>();
String json = "{\"name\" : \"jonny\","
+ "\"address\" : {"
+ "\"street\" : \"12 High Street\","
+ "\"post code\" : 1234"
+ "}"
+ "}";
JsonValue jsonValue = SpinValues.jsonValue(json).create();
variables.put("json", jsonValue);
String id = pe.getRuntimeService().startProcessInstanceByKey("test", variables).getProcessInstanceId();
I checked the object and the value is null as the error describe only the jsonValue.serializedValue contains what I set.
Thanks: Gábor