Skip to content

Supported Paths

Shuzhao Feng edited this page Oct 20, 2023 · 1 revision

Below is a collection of JsonPathSerializer supported paths syntax, grouped by the version where they start to be supported.

v.0.2.0

  • Index values:
    • Mix of index and span values. E.g. $.path[0,1:3,4:]

v.0.1.2

  • Index values:
    • Span values:
      • Open-start span values. E.g. $.path[1:]
      • Open-end span values. E.g. $.path[:3]
      • Closed span values. E.g. $.path[1:3]

v0.1.0 (unstable)

  • Property values:
    • Dot notation. E.g. $.path.to.location
    • Bracket notation. E.g. $['path']['to']['location']
    • Mixed notation. E.g. $.path['to'].location
  • Index values:
    • Single value. E.g. $.path[0]
    • Multiple values. E.g. $.path[0,1,2]

Clone this wiki locally