Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

traverse

  • Loading branch information...
commit ff643c84b8c60603f62fa49f975746ee55ebef7f 1 parent 45e785e
markhibberd authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/scala/com/ephox/argonaut/JsonObject.scala
View
6 src/main/scala/com/ephox/argonaut/JsonObject.scala
@@ -94,6 +94,12 @@ sealed trait JsonObject {
toMap.map(f)
/**
+ * Traverse Json values.
+ */
+ def traverse[F[_]: Applicative](f: Json => F[Json]) =
+ toMap.traverse(f)
+
+ /**
* Returns the number of associations.
*/
def size: Int =
Please sign in to comment.
Something went wrong with that request. Please try again.