...
However, dots are already allowed as part of element names on JSON (i.e. Schemaless) records(e.g. {
'nested.key': {'value':42}}
). Instead of escaping dots with backslashes — which in JSON configurations will lead to unfriendly configurations — it's proposed to follow a similar approach as the JSONata[2] to add field names with dots using backticks, e.g. `nested.key`.value
Double-backticks Backslashes can be used to escape existing backticks that are part of the field name – expecting that backticks are far less usual than dots included on field names.
[1] https://stedolan.github.io/jq/manual/#Basicfilters
...
Scenario | Field name | Nested path |
---|---|---|
Normal (no dots or backticks on field names) | a.b.c | a: b: c: val |
Field names including dots | a.`b.c` | a: b.c: val |
Field names including backticks | a.b`.c | a: b`: c: val |
Field names including dots and backticks | a.`b```b\`.c` | a: b`c: val |
Field names wrapped by backticks | a.``b``\`b\`.c | a: `b`: c: val |
Affected SMTs
...