You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: this document uses [JEP-12 JSON Literals](https://github.com/jmespath-community/jmespath.spec/blob/main/jep-012-raw-string-literals.md#abnf) such as strings like `` `"foo"` `` and numbers like `` `-1` ``.
18
+
17
19
## Motivation
18
20
19
21
Functions allow users to easily transform and filter data in JMESPath
@@ -259,9 +261,9 @@ As a final example, here is the steps for evaluating `abs(to_number(bar))`:
259
261
260
262
|Expression|Result
261
263
|---|---
262
-
| `abs(1)` |1
263
-
| `abs(-1)`|1
264
-
| ``abs(`abc`)``| |`<error: invalid-type>`
264
+
| `` abs(`1`) `` | `1`
265
+
| `` abs(`-1`) ``| `1`
266
+
| ``abs(`"abc"`) ``| |`<error: invalid-type>`
265
267
266
268
### avg
267
269
@@ -297,7 +299,7 @@ Returns the next highest integer value by rounding up if necessary.
297
299
| ``ceil(`1.001`)`` | 2
298
300
| ``ceil(`1.9`)`` | 2
299
301
| ``ceil(`1`)`` | 1
300
-
| ``ceil(`abc`)`` | `null`
302
+
| ``ceil(`"abc"`)`` | `null`
301
303
302
304
### contains
303
305
@@ -318,14 +320,14 @@ the string contains the provided `$search` argument.
Copy file name to clipboardExpand all lines: jep-006-improved-identifiers.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ identifier grammar rules will be fixed, along with an improved grammar for
16
16
specifying unicode identifiers in a way that is consistent with JSON
17
17
strings.
18
18
19
+
**Note**: this document uses [JEP-12 JSON Literals](https://github.com/jmespath-community/jmespath.spec/blob/main/jep-012-raw-string-literals.md#abnf) such as strings like `` `"foo"` `` and numbers like `` `-1` ``.
20
+
19
21
## Motivation
20
22
21
23
There are two ways to currently specify an identifier, the unquoted rule:
@@ -172,8 +174,8 @@ this is just a suggested syntax, not a formal proposal), given the data:
172
174
You can now have the following JMESPath expressions:
173
175
174
176
```
175
-
foo[?"✓" = `✓`]
176
-
foo[?"\u2713" = `\u2713`]
177
+
foo[?"✓" = `"✓"`]
178
+
foo[?"\u2713" = `"\u2713"`]
177
179
```
178
180
179
181
As a general property, any supported JSON string is now a supported quoted
Copy file name to clipboardExpand all lines: jep-011-let-function.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ JMESPath to introduce scoping, but provides useful functionality such as being
17
17
able to refer to elements defined outside of the current scope used to evaluate
18
18
an expression.
19
19
20
+
**Note**: this document uses [JEP-12 JSON Literals](https://github.com/jmespath-community/jmespath.spec/blob/main/jep-012-raw-string-literals.md#abnf) such as strings like `` `"foo"` `` and numbers like `` `-1` ``.
21
+
20
22
## Motivation
21
23
22
24
As a JMESPath expression is being evaluated, the current element, which can be
0 commit comments