diff options
author | Dan Brown <jdanbrown@gmail.com> | 2012-11-19 13:50:26 -0800 |
---|---|---|
committer | Dan Brown <jdanbrown@gmail.com> | 2012-11-19 13:50:26 -0800 |
commit | 7e791d2efd6899d03bf8c200ce29b51112d5465b (patch) | |
tree | 5094dfacca8ec1f049006538b8431c3b83bb53a2 /src/main/scala/spray | |
parent | b9c5163f5c33574e88a608f6d393ceb9128b8f1c (diff) | |
download | spray-json-7e791d2efd6899d03bf8c200ce29b51112d5465b.tar.gz spray-json-7e791d2efd6899d03bf8c200ce29b51112d5465b.tar.bz2 spray-json-7e791d2efd6899d03bf8c200ce29b51112d5465b.zip |
Fix: \u0001 -> \u0001
Diffstat (limited to 'src/main/scala/spray')
-rw-r--r-- | src/main/scala/spray/json/JsonPrinter.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/scala/spray/json/JsonPrinter.scala b/src/main/scala/spray/json/JsonPrinter.scala index 23529f3..258c881 100644 --- a/src/main/scala/spray/json/JsonPrinter.scala +++ b/src/main/scala/spray/json/JsonPrinter.scala @@ -67,6 +67,7 @@ trait JsonPrinter extends (JsValue => String) { case '\n' => sb.append("\\n") case '\r' => sb.append("\\r") case '\t' => sb.append("\\t") + case x if x <= 0xF => sb.append("\\u000").append(Integer.toHexString(x)) case x if x <= 0xFF => sb.append("\\u00").append(Integer.toHexString(x)) case x if x <= 0xFFF => sb.append("\\u0").append(Integer.toHexString(x)) case x => sb.append("\\u").append(Integer.toHexString(x)) |