Scala 中把 样例类转换成为JSON字符串
标签:
fastjson无法转换 case class 为json <dependency> <groupId>org.json4s</groupId> <artifactId>json4s-native_2.11</artifactId> <version>3.5.4</version> </dependency> import org.json4s.native.Serialization implicit val formats=org.json4s.DefaultFormats val orderInfoJson: String = Serialization.write(orderInfo)Scala 中把 样例类转换成为JSON字符串
温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/web/10186.html
- 上一篇:Vue.js 计算属性
- 下一篇:在本地环境运行airtest脚本