Skip to content

Commit 579141d

Browse files
authored
Reverted JSON errata: / solidus is valid both escaped and otherwise. (#125)
* Reverted JSON errata: / solidus is valid both escaped and otherwise. * Fixed incorrect grammar rule for JSON key names in json-value literal.
1 parent cbc4c38 commit 579141d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GRAMMAR.ABNF

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ unquoted-string = (%x41-5A / %x61-7A / %x5F) *( ; A-Za-z_
695695
%x5F / ; _
696696
%x61-7A) ; a-z
697697
quoted-string = quote 1*(unescaped-char / escaped-char) quote
698-
unescaped-char = %x20-21 / %x23-2E / %30-5B / %x5D-10FFFF
698+
unescaped-char = %x20-21 / %x23-5B / %x5D-10FFFF
699699
escape = "\"
700700
quote = %x22 ; Double quote: '"'
701701
escaped-char = escape (
@@ -732,7 +732,7 @@ ws = *(%x20 / ; Space
732732
%x0D ; Carriage return
733733
)
734734
json-object = begin-object [ member *( value-separator member ) ] end-object
735-
member = quoted-string name-separator json-value
735+
member = json-quoted-string name-separator json-value
736736
json-array = begin-array [ json-value *( value-separator json-value ) ] end-array
737737
json-number = [ minus ] int [ frac ] [ exp ]
738738
decimal-point = %x2E ; .

0 commit comments

Comments
 (0)