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

**URL:** <https://community.influxdata.com/t/is-it-possible-to-break-the-message-a-json-string-to-json-objects-key-value-pair/7237>\
**Category:** Kapacitor\
**Tags:** kapacitor, chronograf\
**Created:** [November 1, 2018, 12:21pm UTC](https://community.influxdata.com/t/is-it-possible-to-break-the-message-a-json-string-to-json-objects-key-value-pair/7237 "2018-11-01T12:21:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Sikarwar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ashish_sikarwar/32/2074_2.png) [@Ashish\_Sikarwar](https://community.influxdata.com/u/Ashish_Sikarwar)\
**Post date:** [November 1, 2018, 12:21pm UTC](https://community.influxdata.com/t/is-it-possible-to-break-the-message-a-json-string-to-json-objects-key-value-pair/7237/1 "2018-11-01T12:21:51Z")

</div>

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](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?
