Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Filter JS serialization
package controllers
import play.api.libs.json.Json
class Test {
case class Filter(id: Int, table: String, name: String, Type: String, structure: String)
implicit val filterWrites = Json.writes[Filter]
def tojs = {
val l: List[Filter] = List(Filter(3, "4", "5", "6", "7"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment