Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.36 KB | None | 0 0
  1. val query = for {
  2.       bp <- EveDB.Industryblueprints
  3.       t <- bp.blueprint if t.typename.toUpperCase like "%"+term2+"% BLUEPRINT"
  4.     } yield (t.typeid, t.typename)
  5. val yy = query.list
  6. //yy map {List _}
  7. val json = Json.toJson(yy)
  8.  
  9. No Json serializer found for type List[(Int, Option[String])]. Try to implement an implicit Writes or Format for this type.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement