How to deserialize a scala tree with JSON4S
问题 Serialization works fine but I have nothing for deserialization. I found interesting solution for abstract class here How to serialize sealed abstract class with Json4s in Scala? but it doesn't deal with trees. This the code of my test with a standard JSON4S : import org.json4s._ import org.json4s.native.JsonMethods._ import org.json4s.native.Serialization.{ read, write } import org.json4s.native.Serialization abstract class Tree case class Node(nameN: String, trees: List[Tree]) extends Tree