How can I use Gson in Scala to serialize a List?

后端 未结 5 968
感动是毒
感动是毒 2021-01-04 09:54

I was hoping to use Scala and Gson together. It seems to mostly work, but when I do something like this, it treats the list as an object, not an array:

case          


        
5条回答
  •  梦毁少年i
    2021-01-04 10:23

    You may try lift json, it's native scala lib: http://www.assembla.com/spaces/liftweb/wiki/JSON_Support

提交回复
热议问题