Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Can you tell me if it supports designated JSON serialization methods? #1064

@owendawn

Description

@owendawn

Is your feature request related to a problem? Please describe.(关于这个PR的描述,社区已开启国际化推广,请文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

Can you tell me if it supports designated JSON serialization methods? For example, in our project, I use Jackson to implement serialization. To prevent affecting the API return format, I use Gson to deserialize third-party non-camel case parameters. In the current generated documentation, it automatically recognizes the gson serialized annotation @SerializedName, but the return parameter format is not what I expected.

Basic example (PR的用例,社区已开启国际化推广,请文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

public class DisasterWarnDto implements Serializable {

@SerializedName("tong_time")
private String tongTime;

@SerializedName("unit_lat")
private String unitLat;

}

Describe the solution you'd like (描述您想要的解决方案,社区已开启国际化推广,请文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

The desired result is
{“tongTime”:"xxxx","unitLat":"xxxx"}

but not
{“tong_time”:"xxxx","unit_lat":"xxxx"}

Describe alternatives you've considered (描述你考虑过的替代方案,社区已开启国际化推广,请文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

I hope to have a plan that clearly specifies which JSON serialization schemes are supported.

Additional context (其他背景信息,社区已开启国际化推广,请文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

No response

Validations

  • Read the docs. (请先阅读官方文档)
  • Read the Contributing Guidelines. (请先阅读官方文档·贡献指南)
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. (检查是否存在报告相同错误的问题,以避免产生重复)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions