Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.70 不兼容kotlin 了吗? #3248

Closed
hahalixiaojing opened this issue Jun 9, 2020 · 2 comments
Closed

1.2.70 不兼容kotlin 了吗? #3248

hahalixiaojing opened this issue Jun 9, 2020 · 2 comments
Milestone

Comments

@hahalixiaojing
Copy link

hahalixiaojing commented Jun 9, 2020

下面这段代码返序列化无效

class TestJson {
    @JSONField(name = "namex")
    open var name = ""
}

 val testJson = TestJson().also {
            it.name = "my name"
        }

        val str = JSON.toJSONString(testJson)
        //返序列化无效,name 无值
        val parseObject = JSON.parseObject(str, TestJson::class.java)
@wenshao wenshao added this to the 1.2.71 milestone Jun 10, 2020
@wenshao
Copy link
Member

wenshao commented Jun 10, 2020

要支持的,这个周会会发布新版本

@wenshao
Copy link
Member

wenshao commented Jun 14, 2020

https://github.com/alibaba/fastjson/wiki/enum_custom_serialization
问题修复,请用新版本

@wenshao wenshao closed this as completed Jun 14, 2020
This was referenced Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants