Atom-Json serialization in Scala