-
-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Labels
Description
Discussed in #462
Originally posted by adamalston May 13, 2022
I only want to use preserve order for a single XML element. Right now I am doing the following:
preserveOrder: (name, jpath, isLeafNode, isAttribute) => {
return 'description' === name || jpath.includes('description');
},It's not working because preserveOrder is expecting a boolean:
type X2jOptions = {
preserveOrder: boolean;
...
};Is there a way to use preserveOrder selectively?
flevi29 and hyzyla