我正在努力将jarray[jstring]转换为scala list[string]
scala> (configMap \ "orderedCols").extract[JArray]
res27: org.json4s.JArray = JArray(List(JString(id), JString(name)))
scala> (configMap \ "orderedCols").extract[JArray].toList
<console>:40: error: value toList is not a member of org.json4s.JArray
(configMap \ "orderedCols").extract[JArray].toList
有人能帮我^预期输出:list(“id”,“name”)
暂无答案!
目前还没有任何答案,快来回答吧!