Skip to content

Preserving XML ordem when parse from XML string to Json - #256

Closed
PedroHReis22 wants to merge 2 commits into
stleary:masterfrom
PedroHReis22:master
Closed

Preserving XML ordem when parse from XML string to Json#256
PedroHReis22 wants to merge 2 commits into
stleary:masterfrom
PedroHReis22:master

Conversation

@PedroHReis22

Copy link
Copy Markdown

Currently, if we parse a xml string to a JsonObject, we have no guarantee that the xml order will be preserved (because JSONObject uses a HashMap).
May be interesting keep this order (although it does not make a difference in the Json's structure).
This pull request swaps from HashMap to LinkedHashMap.

@PedroHReis22

Copy link
Copy Markdown
Author

It's duplicate from #106

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.

1 participant