Permalink
Browse files

Replaced deprecated methods.

  • Loading branch information...
1 parent bf363aa commit 913346c9cfc0b9ca5924df0fe9619f79e2ef4b97 @alpire alpire committed Apr 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/scala/com/twitter/json/Json.scala
@@ -153,7 +153,7 @@ object Json {
case list: Seq[_] =>
list.map(build(_).body).mkString("[", ",", "]")
case map: scala.collection.Map[_, _] =>
- Sorting.stableSort[(Any, Any), String](map.elements.toList, { case (k, v) => k.toString }).map { case (k, v) =>
+ Sorting.stableSort[(Any, Any), String](map.iterator.toList, { case (k, v) => k.toString }).map { case (k, v) =>
quote(k.toString) + ":" + build(v).body
}.mkString("{", ",", "}")
case x: JsonSerializable => x.toJson()

0 comments on commit 913346c

Please sign in to comment.