alibaba / alibaba/HandyJSON

请问怎么在序列化的时候,对生成的json字符串按自定义规则排序字段

Open
#490 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/alibaba/HandyJSON/assets/10189815/62723e7a-3eef-47c9-be7d-d079a4d2cd8d)

如图每次序列化顺序是不固定的 想固定顺序方便阅读

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by reviewing HandyJSON's serialization APIs and current JSON field-order behavior; the work would need a defined custom ordering rule and a way to verify that serialized output follows it.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.