Skip to content

Commit

Permalink
Merge pull request #24 from pedrofurla/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
cvogt committed Mar 23, 2016
2 parents 0a13038 + a984885 commit 984d9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -43,9 +43,9 @@ requires play-json >= 2.4 (but tested with and by default depends on 2.5.x)
assert(foo == json.as[Foo])

#### deserialization uses default values
case class Bar(s: String, i: Int = 6)
implicit lazy val format = Jsonx.formatCaseClassUseDefaults[Bar]
assert(Bar("asd",6) == Json.parse("""{"s":"asd"}""").validate[Bar].get)
case class Bar(s: String, i: Int = 6)
implicit lazy val format = Jsonx.formatCaseClassUseDefaults[Bar]
assert(Bar("asd",6) == Json.parse("""{"s":"asd"}""").validate[Bar].get)

#### De-/Serialize tuples
import org.cvogt.play.json.tuples._
Expand Down

0 comments on commit 984d9d4

Please sign in to comment.