Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced deprecated methods.

  • Loading branch information...
commit 913346c9cfc0b9ca5924df0fe9619f79e2ef4b97 1 parent bf363aa
@alpire alpire authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/scala/com/twitter/json/Json.scala
View
2  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()
Please sign in to comment.
Something went wrong with that request. Please try again.