diff options
author | Logan Lowell <fractaloop@gmail.com> | 2014-02-25 10:29:34 -0600 |
---|---|---|
committer | Logan Lowell <fractaloop@gmail.com> | 2014-02-25 10:29:34 -0600 |
commit | ac55063146d3af509a66e0bee7f1062b54091188 (patch) | |
tree | c445363b624fa04a27a2dc17f27daa84ef985848 /src/main/scala/spray | |
parent | 41c7756c53a8618de3f8216cf3c413c4b37b2628 (diff) | |
download | spray-json-ac55063146d3af509a66e0bee7f1062b54091188.tar.gz spray-json-ac55063146d3af509a66e0bee7f1062b54091188.tar.bz2 spray-json-ac55063146d3af509a66e0bee7f1062b54091188.zip |
Modify the JsonPrinter to escape all characters less than 0x20
Diffstat (limited to 'src/main/scala/spray')
-rw-r--r-- | src/main/scala/spray/json/JsonPrinter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/spray/json/JsonPrinter.scala b/src/main/scala/spray/json/JsonPrinter.scala index e47989e..bc1e375 100644 --- a/src/main/scala/spray/json/JsonPrinter.scala +++ b/src/main/scala/spray/json/JsonPrinter.scala @@ -105,7 +105,7 @@ object JsonPrinter { } private[this] def mark(range: scala.collection.immutable.NumericRange[Char]): Unit = range foreach (mark) - mark('\u0000' to '\u0019') + mark('\u0000' to '\u001f') mark('\u007f') mark('"') mark('\\') |