From b09e327beffc0aa20d360601eb470167686e6fa5 Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Tue, 1 Apr 2025 10:24:52 +0200 Subject: [PATCH] example of how to deal with key strings that contain periods or other special characters. --- docs/examples.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/examples.rst b/docs/examples.rst index 4e3b071..b165fab 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -491,3 +491,19 @@ And finally, the third part of the expression, input, the list of sorted city names, and produces a hash with a single key, ``WashingtonCities``, whose values are the input list (denoted by ``@``) as a string separated by a comma. + +Keys with periods +================= + +How to deal with keys that might contain special characters, simply quote the key with double quotes. + +.. jpexample:: formats."qcow2.xz".file + :layout: 2cols-expand + + { + "formats": { + "qcow2.xz": { + "file": "image.qcow2.xz" + } + } + }