scala读取json
2021-05-29 05:17
阅读:773
标签:format ppi port for ble util string close table val js_file="pspldata.area%s_tableMapping.json".format(1) scala读取json 标签:format ppi port for ble util string close table 原文地址:https://www.cnblogs.com/yjybupt/p/14750281.htmlimport scala.util.parsing.json.JSON._
import scala.io.Source
val js_source = Source.fromFile(js_file)
val js_str = js_source.mkString
js_source.close()
val jsonS = parseFull(js_str)
评论
亲,登录后才可以留言!