Add link to multipaths

This commit is contained in:
tidwall 2019-11-01 05:15:58 -07:00
parent 1471a933ec
commit 94e070960b
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ This document is designed to explain the structure of a GJSON Path through examp
- [Queries](#queries) - [Queries](#queries)
- [Dot vs Pipe](#dot-vs-pipe) - [Dot vs Pipe](#dot-vs-pipe)
- [Modifiers](#modifiers) - [Modifiers](#modifiers)
- [Multipaths](#multipaths)
The definitive implemenation is [github.com/tidwall/gjson](https://github.com/tidwall/gjson). The definitive implemenation is [github.com/tidwall/gjson](https://github.com/tidwall/gjson).
Use the [GJSON Playground](https://gjson.dev) to experiment with the syntax online. Use the [GJSON Playground](https://gjson.dev) to experiment with the syntax online.
@ -235,7 +236,7 @@ gjson.AddModifier("case", func(json, arg string) string {
"children.@case:lower.@reverse" ["jack","alex","sara"] "children.@case:lower.@reverse" ["jack","alex","sara"]
``` ```
#### Multipaths ### Multipaths
Starting with v1.3.0, GJSON added the ability to join multiple paths together Starting with v1.3.0, GJSON added the ability to join multiple paths together
to form new documents. Wrapping comma-separated paths between `{...}` or to form new documents. Wrapping comma-separated paths between `{...}` or