Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

Commit

Permalink
Replaced deprecated methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
alpire committed Apr 3, 2011
1 parent bf363aa commit 913346c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/twitter/json/Json.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 913346c

Please sign in to comment.