Jsondecode produces no output and no error

locals {

      resource_groupname = csvdecode(file("./ResourceTypes.csv"))

      json_data = jsondecode(file("${path.module}/monitor.json"))

    }

    resource "azurerm_resource_group" "Main" {

      count    =  length(local.resource_groupname)

      name     =  local.resource_groupname[count.index].resourcetype

      location = "North europe"

    } 

     resource "azurerm_resource_group" "json" {

       # (other settings)

       name = local.json_data

       location = "North europe"

     }

     

      output "local_json_data" {

        value = local.json_data

      }

Above is the complete code and thank you for the quick response.

my end goal is trying to get a Json file and decode it to save as a .TF file, the json file is an azure monitor file.

kindly get the monitor file on the above link