Scala version of the collection-json