Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup example

  • Loading branch information...
commit bbc260d20a83f06b240c0e7e14fc88ba90ea1e9e 1 parent f8834f6
Joni Freeman authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 core/json-scalaz/README.md
View
4 core/json-scalaz/README.md
@@ -45,9 +45,7 @@ to
Example which adds a new type class instance
--------------------------------------------
- scala> implicit def addrJSONR: JSONR[Address] = new JSONR[Address] {
- def read(json: JValue) = Address.applyJSON(field("street"), field("zip"))(json)
- }
+ scala> implicit def addrJSONR: JSONR[Address] = Address.applyJSON(field("street"), field("zip"))
scala> val p = JsonParser.parse(""" {"name":"joe","age":34,"address":{"street": "Manhattan 2", "zip": "00223" }} """)
scala> Person.applyJSON(field("name"), field("age"), field("address"))(p)
Please sign in to comment.
Something went wrong with that request. Please try again.