@@ -224,7 +224,7 @@ bracket-specifier = "[" (number / slice-expression) "]"
224
224
; ; For the grammar rule expression bracket-specifier the expression is first evaluated, and then return value from the
225
225
; ; expression is given as input to the bracket-specifier.
226
226
; ;
227
- ; ; Using a "*” character within a bracket-specifier is discussed below in the wildcard expressions section.
227
+ ; ; Using a "*" character within a bracket-specifier is discussed below in the wildcard expressions section.
228
228
229
229
bracket-specifier =/ " []" ; ; ## Flatten Operator
230
230
; ; When the character sequence [] is provided as a bracket specifier, then a flattening operation occurs on the current
@@ -346,7 +346,7 @@ keyval-expr = identifier ":" expression
346
346
; ; ```
347
347
348
348
expression =/ " *" ; ; # Wildcard Expressions \
349
- bracket-specifier = " [" " *" " ]"
349
+ bracket-specifier =/ " [" " *" " ]"
350
350
; ; A wildcard expression is a expression of either `*` or `[*]`. A wildcard expression can return multiple elements, and the
351
351
; ; remaining expressions are evaluated against each returned element from a wildcard expression. The `[*]` syntax applies to
352
352
; ; a list type and the `*`syntax applies to a hash type.
@@ -515,11 +515,11 @@ expression-type = "&" expression
515
515
516
516
raw-string = " '" * raw-string-char " '" ; ; # Raw String Literals \
517
517
raw-string-char = (%x 20 -26 / %x 28 -5B / %x 5D -10FFFF ) / preserved-escape / raw-string-escape ; ; \
518
- preserved-escape = escape (%x 20 -26 / %28 -5B / %x 5D -10FFFF ) ; ; \
518
+ preserved-escape = escape (%x 20 -26 / %x 28 -5B / %x 5D -10FFFF ) ; ; \
519
519
raw-string-escape = escape (" '" / escape )
520
520
; ; A raw string is an expression that allows for a literal string value to be specified. The result of evaluating the raw
521
521
; ; string literal expression is the literal string value. It is a simpler form of a literal expression that is special
522
- ; ; cased for strings. For example, the following expressions both evaluate to the same value: "foo” :
522
+ ; ; cased for strings. For example, the following expressions both evaluate to the same value: "foo" :
523
523
; ;
524
524
; ; ```
525
525
; ; search(`"foo"`, "") -> "foo"
@@ -562,13 +562,13 @@ literal = "`" json-value "`" ;; # Literal Expressions
562
562
; ; search({first: a, type: `"mytype"`}, {"a": "b", "c": "d"}) -> {"first": "b", "type": "mytype"}
563
563
; ; ```
564
564
565
- unescaped-literal = %x 20 -21 / ; space !
566
- %x 23 -5B / ; # - [
567
- %x 5D -5F / ; ] ^ _
568
- %x 61 -7A ; a-z
569
- %x 7C -10FFFF ; |}~ ...
570
- escaped-literal = escaped-char / (escape % x 60 )
571
- number = [" -" ]1 * digit
565
+ unescaped-literal = %x 20 -21 / ; space !
566
+ %x 23 -5B / ; # - [
567
+ %x 5D -5F / ; ] ^ _
568
+ %x 61 -7A / ; a-z
569
+ %x 7C -10FFFF ; |}~ ...
570
+ escaped-literal = escaped-char / (escape " ` " )
571
+ number = [" -" ] 1 * digit
572
572
digit = %x 30 -39
573
573
identifier = unquoted-string / quoted-string ; ; # Identifiers
574
574
; ; An identifier is the most basic expression and can be used to extract a single element from a JSON document.
@@ -599,7 +599,7 @@ unquoted-string = (%x41-5A / %x61-7A / %x5F) *( ; A-Za-z_
599
599
%x 61 -7A ) ; a-z
600
600
quoted-string = quote 1 * (unescaped-char / escaped-char ) quote
601
601
unescaped-char = %x 20 -21 / %x 23 -5B / %x 5D -10FFFF
602
- escape = % x 5C ; Back slash: \
602
+ escape = " \ "
603
603
quote = %x 22 ; Double quote: '"'
604
604
escaped-char = escape (
605
605
%x 22 / ; " quotation mark U+0022
@@ -641,9 +641,9 @@ json-number = [ minus ] int [ frac ] [ exp ]
641
641
decimal-point = %x 2E ; .
642
642
digit1-9 = %x 31 -39 ; 1-9
643
643
e = %x 65 / %x 45 ; e E
644
- exp = e [ minus / plus ] 1 * DIGIT
645
- frac = decimal-point 1 * DIGIT
646
- int = zero / ( digit1-9 * DIGIT )
644
+ exp = e [ minus / plus ] 1 * digit
645
+ frac = decimal-point 1 * digit
646
+ int = zero / ( digit1-9 * digit )
647
647
minus = %x 2D ; -
648
648
plus = %x 2B ; +
649
649
zero = %x 30 ; 0
0 commit comments