All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cat_2.9.0-1.0.1.0.source-code.json.scala Maven / Gradle / Ivy

The newest version!
package hubcat

import net.liftweb.json.{ JString, JNothing, JValue, JInt }

trait Jsonizing {  
  def jStringOrNone(opt: Option[String]) = opt match { case Some(s) => JString(s) case _ => JNothing }
  def jIntOrNone(opt: Option[Int]) = opt match { case Some(i) => JInt(BigInt(i)) case _ => JNothing }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy