Anyway, I would really recommend you to find a way to handle it the XML way. So instead of saving nested properties as JSON in a single attribute, try to save them as XML children.
The BPMN specification has a clearly defined extension mechanism. For complex data like JSON you should use bpmn:ExtensionElements that every BPMN element can have. To learn about how create your own extension have a look at this guide: bpmn-js-examples/custom-elements at master · bpmn-io/bpmn-js-examples · GitHub
Your resulting XML would like something like this: