clarify filter usage

The current paragraph is not complete, since a digit is not a special character.

Changing it to:

    If the key contains special characters or starts with a digit,
    you need to surround it with double quotes like this:
    `."foo$"`, or else `.["foo$"]`.
This commit is contained in:
Helmut K. C. Tessarek committed 2019-07-08 21:02:43 -04:00
1 parent e944fe8436
commit 8d9817d2f7
4 files changed
+10 -8

No files matched your search

+3 -2
View File
@@ -317,8 +317,9 @@ sections:
is, keys that are all made of alphanumeric characters and is, keys that are all made of alphanumeric characters and
underscore, and which do not start with a digit. underscore, and which do not start with a digit.
If the key contains special characters, you need to surround If the key contains special characters or starts with a digit,
it with double quotes like this: `."foo$"`, or else `.["foo$"]`. you need to surround it with double quotes like this:
`."foo$"`, or else `.["foo$"]`.
For example `.["foo::bar"]` and `.["foo.bar"]` work while For example `.["foo::bar"]` and `.["foo.bar"]` work while
`.foo::bar` does not, and `.foo.bar` means `.["foo"].["bar"]`. `.foo::bar` does not, and `.foo.bar` means `.["foo"].["bar"]`.
+2 -2
View File
@@ -212,8 +212,8 @@ sections:
JSON object (aka dictionary or hash) as input, it produces JSON object (aka dictionary or hash) as input, it produces
the value at the key "foo", or null if there's none present. the value at the key "foo", or null if there's none present.
If the key contains special characters, you need to surround If the key contains special characters or starts with a digit,
it with double quotes like this: `."foo$"`. you need to surround it with double quotes like this: `."foo$"`.
A filter of the form `.foo.bar` is equivalent to `.foo|.bar`. A filter of the form `.foo.bar` is equivalent to `.foo|.bar`.
+2 -2
View File
@@ -278,8 +278,8 @@ sections:
JSON object (aka dictionary or hash) as input, it produces JSON object (aka dictionary or hash) as input, it produces
the value at the key "foo", or null if there's none present. the value at the key "foo", or null if there's none present.
If the key contains special characters, you need to surround If the key contains special characters or starts with a digit,
it with double quotes like this: `."foo$"`. you need to surround it with double quotes like this: `."foo$"`.
A filter of the form `.foo.bar` is equivalent to `.foo|.bar`. A filter of the form `.foo.bar` is equivalent to `.foo|.bar`.
+3 -2
View File
@@ -310,8 +310,9 @@ sections:
is, keys that are all made of alphanumeric characters and is, keys that are all made of alphanumeric characters and
underscore, and which do not start with a digit. underscore, and which do not start with a digit.
If the key contains special characters, you need to surround If the key contains special characters or starts with a digit,
it with double quotes like this: `."foo$"`, or else `.["foo$"]`. you need to surround it with double quotes like this:
`."foo$"`, or else `.["foo$"]`.
For example `.["foo::bar"]` and `.["foo.bar"]` work while For example `.["foo::bar"]` and `.["foo.bar"]` work while
`.foo::bar` does not, and `.foo.bar` means `.["foo"].["bar"]`. `.foo::bar` does not, and `.foo.bar` means `.["foo"].["bar"]`.