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

[QUESTION] 2.0.27版本,空字符串转map类型,报异常。fastjson1 不报异常,直接返回null。不兼容 #1356

Closed
xiaoxiao556655 opened this issue Apr 13, 2023 · 2 comments
Labels
bug Something isn't working fixed question Further information is requested
Milestone

Comments

@xiaoxiao556655
Copy link

xiaoxiao556655 commented Apr 13, 2023

@Data
@Builder
class PersonTest {

    private int pSsrc;

    private String pUserId;

    private boolean flag;

    private Map<String, String> map;

    public PersonTest(int pSsrc, String pUserId, boolean flag, Map<String, String> map) {
        super();
        this.pSsrc = pSsrc;
        this.pUserId = pUserId;
        this.flag = flag;
        this.map = map;
    }
}

String t1 = "{\"flag\":false,\"pSsrc\":1,\"pUserId\":\"\",\"map\":\"\"}";
PersonTest t =JSON.parseObject(t1, PersonTest.class);
@xiaoxiao556655 xiaoxiao556655 added the question Further information is requested label Apr 13, 2023
@wenshao wenshao added this to the 2.0.28 milestone Apr 13, 2023
@wenshao wenshao added the bug Something isn't working label Apr 13, 2023
@wenshao
Copy link
Member

wenshao commented Apr 13, 2023

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.28-SNAPSHOT/
问题已修复,请帮忙有2.0.8-SNAPSHOT版本验证,2.0.28版本预计会在周末发布

@wenshao wenshao added the fixed label Apr 13, 2023
@wenshao
Copy link
Member

wenshao commented Apr 15, 2023

@wenshao wenshao closed this as completed Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants