JSON formating on FE pages

Hello

Attributes are JSON objects. Some past designers had missed that conception, thinking that attributes are KVS with values limited to strings.

Here is how JSON objects look in HA:

Attribute view available on More info page :man_facepalming: :

attributes view in Developer Tools / States. Looks a bit better but still…

Developer tools/templates confirm that we are prepared on such occasions
to_json(pretty_print=True) gives a nicely formatted object. I wouldn’t mind a highlighting…

Could we get formatted json represtation on the mentioned pages?
What do you think?

Please create a feature request here: home-assistant · Discussions · GitHub

Not on the forum. It will not be tracked here.