Link Diagnostics extension schema json with ARM

This message when I go to the diagnostic settings of my virtual machine after deploying the azure diagnostics extension using the arm template given here: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-template?toc=%2Fazure%2Fazure-monitor%2Ftoc.json#wadmetrics-tables-in-storage
The arm template uses XML for the WAD config, and if I click the message from the portal it suggests to the json here: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/diagnostics-extension-schema-windows
my question is, how do I incorporate this publicconfig json into the arm template for installing the azure diagnostics extension?
for me I'm trying to install the azure diagnostics extension on the virtual machine, but the second link you sent doesn't talk about that unfortunately. as I mentioned, it seems setting the diagnostic settings using xml doesn't work since Azure is only going to support JSON. I'm still confused as to how to define and where to put the publicconfig inside this template. so there's the property for the XML config that I boxed in red, not sure where to put the publicconfig element they talk about here https://learn.microsoft.com/en-us/azure/azure-monitor/agents/diagnostics-extension-schema-windows
@KarishmaTiwari-MSFT just commented above