Updated var to work like jq #934

This commit is contained in:
Mike Farah
2021-09-12 16:55:55 +10:00
parent 1cfbbde796
commit b2ee131a4c
9 changed files with 102 additions and 13 deletions
+3 -1
View File
@@ -1 +1,3 @@
For more complex scenarios, variables can be used to hold values of expression to be used in other expressions.
Like the `jq` equivalents, variables are sometimes required for the more complex expressions (or swapping values between fields).
Note that there is also an additional `ref` operator that holds a reference (instead of a copy) of the path, allowing you to make multiple changes to the same path.