Generate BPMN 2 XML from JSON

HI Everyone,

I have a requirement to change specific JSON data to BPMN 2.0 xml format and call a deployment api of camunda with generated BPMN 2.0 to deploy process in Camunda.

Is there any method to do this or what should be the correct way to do achieve this using node model library ?

Thanks in Advance…