开发者社区 问答 正文

关于fastjson 2 分析器配置的问题。

fastjson2中ParserConfig取消了propertyNamingStrategy属性,要实现如下转换,请问要怎么处理呢? ParserConfig config = ParserConfig.getGlobalInstance(); config.propertyNamingStrategy = PropertyNamingStrategy.CamelCase; jsonObj.toJavaObject(clazz, config, 0);

原提问者GitHub用户xhygege

展开
收起
飘飘斯嘉丽 2023-04-21 11:31:56 395 发布于北京 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • JSONReader.Feature.SupportSmartMatch 是否能满足您的场景 see https://github.com/alibaba/fastjson2/blob/main/docs/features_cn.md

    原回答者GitHub用户VictorZeng

    2023-04-21 14:32:34 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
问答分类:
问答地址:
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等