Skip to content

Commit

Permalink
Fix naming of mapFormat (spray#125).
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaali committed May 19, 2020
1 parent 0117931 commit 4a243ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/spray/json/CollectionFormats.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ trait CollectionFormats {
/**
* Supplies the JsonFormat for Maps.
*/
implicit def mapFormatNew[K :KeyableFormat, V :JsonFormat] = new RootJsonFormat[Map[K, V]] {
implicit def mapFormat[K :KeyableFormat, V :JsonFormat] = new RootJsonFormat[Map[K, V]] {
def write(m: Map[K, V]) = JsObject {
m.map { field =>
field._1.toKey -> field._2.toJson
Expand Down

0 comments on commit 4a243ba

Please sign in to comment.