Is it possible to break the .Message a json string to json objects (Key Value pair)?

kapacitor
chronograf

#1

Currently this is my json string

.message(‘alert_name | {{.Name}}; Server | {{ index .Tags “host” }}; alert_metrics | CPU_Crtical_Rate_15Min; alert_severity | {{.Level}}; Instance | {{ index .Tags “instance” }}; CPU_Time | {{ index .Fields “crit_rate” }}; Task_Name | {{.TaskName}}; grafana_link | http://localhost:8082/d/testdashboard?orgId=1&from=1540104958215&to=1540465158036; alert_time | {{.Time}}’)

To something like this:

“message”:{
“alert_name: crit_rate”,
“Server: TR344OOT”,
}

Is it possible or do i have to use .Details?