-
Notifications
You must be signed in to change notification settings - Fork 500
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
转换json 字符串是否没有详细区分?PropertyNamingStrategy #2459
Comments
你来提交一个PR? |
sorry 新手瞎鼓捣的 不太会啊 还请大佬解决呗 |
yanxutao89
added a commit
that referenced
this issue
Apr 19, 2024
3 tasks
wenshao
pushed a commit
that referenced
this issue
Apr 19, 2024
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.50-SNAPSHOT/ |
yanxutao89
added a commit
that referenced
this issue
Apr 24, 2024
3 tasks
wenshao
pushed a commit
that referenced
this issue
Apr 24, 2024
https://github.com/alibaba/fastjson2/releases/tag/2.0.50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
新手不懂就问 如下代码 Jdk 21 graalvm , fastjson2 2.0.49
`
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.PropertyNamingStrategy;
import com.alibaba.fastjson2.annotation.JSONType;
import lombok.Data;
@DaTa
@jsontype(naming= PropertyNamingStrategy.LowerCase)
public class User {
}
`
虽然我知道 修改如下 代码 去掉 @jsontype 即可正常
System.out.println(JSON.toJSONString(user, NameFilter.of(PropertyNamingStrategy.LowerCase)));
仍不能解释疑惑 为什么 这个枚举例如
@jsontype(naming= PropertyNamingStrategy.UpperCase)
@jsontype(naming= PropertyNamingStrategy.PascalCase)
@jsontype(naming= PropertyNamingStrategy.CamelCase)
...
这些 使用 System.out.println(JSON.toJSONString(user)); 正常 而LowerCase 却是不行 其他很多未测试 请大佬释疑
The text was updated successfully, but these errors were encountered: