summaryrefslogtreecommitdiff
path: root/src/main/scala/spray/json/PrettyPrinter.scala
diff options
context:
space:
mode:
authorMathias <mathias@spray.io>2014-09-19 15:13:01 +0200
committerMathias <mathias@spray.io>2014-09-19 15:13:01 +0200
commit37af0d4ca639ccea44efcb22d10a1e07abc4c04b (patch)
tree34e983e7d3b70e7c095a71d8645f612862a8c038 /src/main/scala/spray/json/PrettyPrinter.scala
parentc4a92c096ee223e680ea1bba80c4633ed9f64344 (diff)
downloadspray-json-37af0d4ca639ccea44efcb22d10a1e07abc4c04b.tar.gz
spray-json-37af0d4ca639ccea44efcb22d10a1e07abc4c04b.tar.bz2
spray-json-37af0d4ca639ccea44efcb22d10a1e07abc4c04b.zip
Switch JsArray(List) to JsArray(Vector), make parser produce JsObject(HashMap) rather than JsObject(ListMap)
Diffstat (limited to 'src/main/scala/spray/json/PrettyPrinter.scala')
-rw-r--r--src/main/scala/spray/json/PrettyPrinter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/spray/json/PrettyPrinter.scala b/src/main/scala/spray/json/PrettyPrinter.scala
index 5a2f142..57cf35e 100644
--- a/src/main/scala/spray/json/PrettyPrinter.scala
+++ b/src/main/scala/spray/json/PrettyPrinter.scala
@@ -50,7 +50,7 @@ trait PrettyPrinter extends JsonPrinter {
sb.append("}")
}
- protected def printArray(elements: List[JsValue], sb: StringBuilder, indent: Int) {
+ protected def printArray(elements: Seq[JsValue], sb: StringBuilder, indent: Int) {
sb.append('[')
printSeq(elements, sb.append(", "))(print(_, sb, indent))
sb.append(']')