Ticket #8425: json_decode_alternating_quote_types.diff
| File json_decode_alternating_quote_types.diff, 0.6 kB (added by canadaduane, 2 years ago) |
|---|
-
activesupport/lib/active_support/json/decoding.rb
old new 22 22 while scanner.scan_until(/(['":,]|\\.)/) 23 23 case char = scanner[1] 24 24 when '"', "'" 25 quoting = quoting == char ? false : char25 quoting = quoting == char ? false : (quoting ? quoting : char) 26 26 when ":", "," 27 27 marks << scanner.pos - 1 unless quoting 28 28 end