Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created January 26, 2012 11:34
Show Gist options
  • Save debasishg/1682366 to your computer and use it in GitHub Desktop.
Save debasishg/1682366 to your computer and use it in GitHub Desktop.
some typeclass love for sjson
val m1 = Map(1 -> Map(1 -> "a", 2 -> "b", 3 -> "c"))
val m2 = Map(1 -> Map(2 -> "x"), 2 -> Map(3 -> "d", 5 -> "e"))
tojson(m1) |+| tojson(m2) should equal(tojson(m1 |+| m2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment