Scala解析Json字符串的实例详解
1. 添加相应依赖
Json解析工具使用的 json-smart,曾经对比过Java的fastjson、gson。Scala的json4s、lift-json。其中 json-smart 解析速度是最快的。
2. Scala代码