innovaco / binders-json   0.12.47

GitHub

Serialize/deserialize Scala case classes to JSON

Scala versions: 2.11 2.10

binders-json

Build Status

Latest Releases

Serialize/deserialize Scala case classes to JSON

A plain example how-to use a library:

case class TestClass(
  intValue: Int,
  longOption: Option[Long],
  stringValue: String
)

//

import eu.inn.binders.json._

val obj = TestClass(100500,None,"John")

val json = obj.toJson // serialize to JSON string

val obj2 = json.parseJson[TestClass] // deserialize JSON string to case class

License

Product licensed under BSD 3-clause as stated in file LICENSE