From 9769bd5f08965ebd55f8f66148dc648eca1eb2fc Mon Sep 17 00:00:00 2001 From: Johan Klintberg Date: Wed, 7 Sep 2016 21:09:56 +0200 Subject: [PATCH] Example of usage of square bracket notation (#908) Shows example how to extract values from a key that normally isn't allowed in dot notation. --- source/_topics/templating.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/_topics/templating.markdown b/source/_topics/templating.markdown index 10f4ff6615a..ef26bc874c6 100644 --- a/source/_topics/templating.markdown +++ b/source/_topics/templating.markdown @@ -199,4 +199,7 @@ It depends per component or platform but it is common to be able to define a tem # Timestamps {% raw %}{{ value_json.tst | timestamp_local }}{% endraw %} {% raw %}{{ value_json.tst | timestamp_utc }}{% endraw %} + +# Square bracket notation +{% raw %}{{ value_json["001"] }}{% endraw %} ```