如何在 play json 中创建一个空的 JsResult?
How to create an empty JsResult in play json?
我正在写一个隐式读取 returning JsResult[Seq[T]]
基于条件:
some_condition match{
case Some(value) => // JsResult[Seq[T]]
case _ => // returning an empty JsResult here of similar type?
}
return这样的JsResult
会怎样?
我正在写一个隐式读取 returning JsResult[Seq[T]]
基于条件:
some_condition match{
case Some(value) => // JsResult[Seq[T]]
case _ => // returning an empty JsResult here of similar type?
}
return这样的JsResult
会怎样?