alibaba / alibaba/fastjson2

[QUESTION]json.parse在读取带下划线的变量转驼峰要如何全局设置?

Open
#1,990 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

例如
String jsonStr = {"user_id": 1111};
变量名userId;
有什么办法可以全局设置码

Contributor guide

Open the contributing guide

Research direction

Start by reading fastjson2's JSON parsing and deserialization configuration APIs, focusing on whether a global naming strategy can map the shown user_id field to userId. Done means confirming the supported configuration or identifying the missing capability with a minimal example based on the issue's JSON and Java variable names.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.