Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字段排序--Feature.OrderedField,只对第一层的key进行排序 #255

Closed
ilaipi opened this issue Dec 15, 2014 · 2 comments
Closed

Comments

@ilaipi
Copy link
Contributor

ilaipi commented Dec 15, 2014

排序会很影响性能吗?
当我尝试对第一层排序后的key遍历时,每个key下的对象的key是无序的了,而我需要第二层的key依然有序..希望提供支持啊

@strivezsh
Copy link

+1

yakolee pushed a commit that referenced this issue Jan 14, 2015
@wenshao wenshao closed this as completed Apr 12, 2016
@RchBoy
Copy link

RchBoy commented Nov 17, 2021

JSON.parseObject(JSON.toJSONString(map, SerializerFeature.MapSortField),LinkedHashMap.class, Feature.OrderedField);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants