Help with json and string, please

I’m running a script on another system that is using the HASS MQTT API to publish a message. After much trial and etrror I have learned how to assemble and escape the CURL command so as to send a string that ends up in an mqtt sensor as such:
{“one”:“abc”,“two”:“xyz”}
and, a second sensor consuming the same topic with value_json.one nicely produces
abc

However, I have not been able to use json notation in the template designer.

{% set my_test_json = states.sensor.mqtt_test0.state %}
My Test gives {{ my_test_json }}
produces
My Test gives {“one”:“abc”,“two”:“xyz”}

but my_test_json.one gives {{ my_test_json.one }}
produces nothing.

Can someone point me in the right direction to use either dot or bracket notation on my state or state string?

Thanks for the help

Hi @jaalperin, i don’t know why, but this doesn’t work.