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

Preserve order on JSONObject #143

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

aaronmray
Copy link

I am using this library to write and read to a configuration file. Preserving the order of the JSONObject provides some quality of life improvements to my end users.

I have a need for the JSONObject order to be preserved. Extending LinkedHashMap instead of HashMap fixes my issue.
@gothius
Copy link

gothius commented Jun 16, 2021

I could be wrong, but you might want to use cliftonlabs.github.io/json-simple which seems to be the current version that is maintained.

@aaronmray
Copy link
Author

I could be wrong, but you might want to use cliftonlabs.github.io/json-simple which seems to be the current version that is maintained.

I saw that mentioned in another PR, but I am honestly not very hopeful my PR will be merged to either of the repos. I will give it a shot though.

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

Successfully merging this pull request may close these issues.

2 participants