zzztimbo zzztimbo - 2 months ago 7
Scala Question

Is there a way to handle quoted null String in Scala?

I would like to have the String,

"null"
converted to an
Option[String] = None
.

Answer
val x = "null" 
Option(x).filter(_!="null")