fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

基于kotlin 原生特性的支持 这个有计划吗??

Open ming0804 opened this issue 4 years ago • 5 comments

现在kotlin在实际的应用中还是很常见的 ,但是他的反序列化各个json库支持的都不是很好 ,这个方面有计划吗???

ming0804 avatar Apr 25 '22 02:04 ming0804

要做的,但是目前还没有做详细的测试和匹配,在5月3日发布2.0.2之后再做考虑

wenshao avatar Apr 25 '22 14:04 wenshao

嗯嗯 期待

ming0804 avatar Apr 26 '22 00:04 ming0804

我也表示期待,Kotlin在服务端的生态越来越多了,甚至有的库都是Kotlin写的(OKIO,OKHTTP甚至专门重写了一遍)希望这个库也至少提供类似Rxjava,Spring的拓展支持。

techwn avatar May 04 '22 00:05 techwn

+1

ByteRax avatar May 11 '22 02:05 ByteRax

https://github.com/alibaba/fastjson2/releases 已经支持,请用最新2.0.3

Kotlin原生支持需要加上下面依赖:

<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-kotlin</artifactId>
<version>2.0.3</version>

wenshao avatar May 14 '22 05:05 wenshao