Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

ScenarioField nameNested path
Normal (no dots or backticks on field names)a.b.c

a:

  b:

    c: val

Field names including dotsa.`b.c`

a:

  b.c: val

Field names including backticksa.b`.c

a:

  b`:

    c: val

Field names including dots and backticksa.`b```b\`.c`

a:

  b`c: val

Field names wrapped by backticksa.``b``\`b\`.c

a:

  `b`:

      c: val

Affected SMTs

...