diff options
author | Mark Hatton <mark.hatton@shazam.com> | 2015-04-08 19:12:05 +0100 |
---|---|---|
committer | Mark Hatton <mark.hatton@shazam.com> | 2015-04-09 13:26:14 +0100 |
commit | 828b02eabf4cef1b145918d7c52f3fb457902281 (patch) | |
tree | 92d959ca342f4450947206691ce0634369c2628e /src/main/scala/spray | |
parent | 9a5f8cd56918173240ebda58fb62de34746057b4 (diff) | |
download | spray-json-828b02eabf4cef1b145918d7c52f3fb457902281.tar.gz spray-json-828b02eabf4cef1b145918d7c52f3fb457902281.tar.bz2 spray-json-828b02eabf4cef1b145918d7c52f3fb457902281.zip |
= Fix multibyte chars at ix 0 of JSON String not being parsed correctly, closes #148
Diffstat (limited to 'src/main/scala/spray')
-rw-r--r-- | src/main/scala/spray/json/JsonParser.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/spray/json/JsonParser.scala b/src/main/scala/spray/json/JsonParser.scala index 3d61cb4..674d8ea 100644 --- a/src/main/scala/spray/json/JsonParser.scala +++ b/src/main/scala/spray/json/JsonParser.scala @@ -124,7 +124,7 @@ class JsonParser(input: ParserInput) { // http://tools.ietf.org/html/rfc4627#section-2.5 private def `string`(): Unit = { - require('"') + if (cursorChar == '"') cursorChar = input.nextUtf8Char() else fail("'\"'") sb.setLength(0) while (`char`()) cursorChar = input.nextUtf8Char() require('"') |