package model.parser

import play.api.libs.json.Reads._
import model.Skimbo
import play.api.libs.json._

trait GenericParser[T] {
  def from(json: JsValue)(implicit fjs: Reads[T]): List[T] = json.as[List[T]]
  def from(json: String)(implicit fjs: Reads[T]): List[T] = from(Json.parse(json))
  def asSkimbos(elements: List[T]): List[Skimbo]
}
Add Generic Parser to Skimbo format
Add Generic Parser to Skimbo format
