How to collect JSON files using azurerm monitor data collection rule?

The latest documentation (Terraform Registry) says the only supported option for log_file/format is “text”. It’s possible to configure it using ARM template and the difference between “text” and “json” is in this only parameter.

Any suggestion on how to configure data collection from JSON files?

Thank you.