[QUESTION]JSONObject.toJSONString 序列化乱序,没有按照对象属性的顺序来显示
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
现在有个需求页面展示的顺序和对象属性顺序一致,但是JSONObject.toJSONString后乱序了,原有的SerializerFeature.SortField被移除了,目前这个版本我该如何配置??
Contributor guide
Research direction
Start with JSONObject.toJSONString and the removed SerializerFeature.SortField option named in the issue. Trace the current serialization configuration and ordering behavior in the repository, then verify whether a supported configuration preserves object-property order. Done means the issue has a documented, reproducible configuration or a clearly identified implementation change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100