innovaco / binders-json

Serialize/deserialize Scala case classes to JSON

Version Matrix

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