zzztimbo zzztimbo - 1 year ago 42
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 Source
val x = "null" 
Option(x).filter(_!="null")