Hi Team,
I have a PowerShell code which has a XML body structure as follows to make a webservice call.

I would like to include more inputs to the "Initialize Data" activity in one of the Runbook as follows.

To accommodate these newly added fields in the POSTBody and make it more readable, I would like to convert this to the JSON format as below format for all the fields as shown above.
{"RunbookId": "aba22216-e183-4e6b-ba76-de87991eb57e", "Parameters": "<Data><Parameter><Name>UserDistinguishedName</Name><ID>{e9bc0d73-89ef-478e-9db4-09ffbcceba6b}</ID><Value>${UserDistinguishedName}</Value></Parameter></Data>"}
I tried the below command and it is not exactly showing the output as I expected.
$JSONBody = $POSTBody | Convertto-Json
It would be great if someone helped in creating a JSON Body request format for all the fields.
Regards,
Jansi