-
-
Notifications
You must be signed in to change notification settings - Fork 332
Added a way to preserve order, #197. #209
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
Conversation
08da3ab
to
84c4336
Compare
@MaartenX thanks for your effort. I'll be waiting for you to finish this PR. Please be free for any discussion. |
35fc023
to
3597107
Compare
@amitguptagwl I fixed the open issues. I had to find a way to specify in the json that an array of nodes 'has a specific order'. The way I do that currently is by creating an empty key, and the value will be treated as an array that contains the objects in the order they will appear in the xml. I thought about using a 'magic' value key, but since an empty key was not used, I picked that. |
04ab361
to
de3729d
Compare
Sorry for the delay. I'll check your PR on next weekend. |
Any update? |
Sorry, @MaartenX I was in the impression that the changes are still going on. So hold the review. Will update you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a small suggestion. I haven't checked for the complete PR yet. I'll probably checkout and understand the flow for better undersanding and output.
I have noticed that the possible values of As you mentioned that you have skipped CDATA in this PR, I wanted to understand if it is because of reducing the complexity of the PR, or it was not feasible at all. Because I just wanted to ensure that the current approach can be extended to adopt future changes. |
@MaartenX any update? |
9fe2f18
to
92ca31f
Compare
How is the status of the PR? |
Been waiting for this PR too |
Me too, coming up on a year since PR was started. Any way we can get priority on this? Would a donation help? I can't use this until this is merged. |
Hey guys, this changes was done because of a time-critical update I needed, so I used it from my fork. I'll try and pick it up again since you are interested, but that won't be in the coming week (really busy with work). |
Appreciate the update! |
@MaartenX @lwestfall if you check v4 branch. I've already handled this feature. However, I have not completed the tests so I can't publish the changes. I'm currently busy in another opensource project that I'm hoping to complete in few weeks. Any help to migrate the tests from master branch to v4 branch will speed the things up. The only thing will be left is to update the JSON2XML parser for new changes. So I'm closing this PR. |
I really need this feature. Is there anywhere we can track the progress of v4? |
Purpose / Goal
This PR adds an option that preserves the order of tags as specified in #197. It is not meant as a finished update (although it works in the tests), but to continue the discussion that was started by @amitguptagwl.
I look forward to seeing what you think of the change.
Type
Please mention the type of PR
Note : Please ensure that you've read contribution guidelines before raising this PR.
Bookmark this repository for further updates.