mulesoft-labs / api-console-cli

A CLI tools for the API console.
Other
14 stars 15 forks source link

JSON data elements sequence or position is not pre-served; it is sorted. #42

Closed domjok1 closed 4 years ago

domjok1 commented 4 years ago

After the build, the JSON data elements inside the JSON structure are sorted, and does not pre-serve the original sequence or positon.

jarrodek commented 4 years ago

Hi, Thank you for the issue report. Order of what are you referring to? Items in navigation? Examples? There's plenty of items rendered by the console :)

domjok1 commented 4 years ago

HI,

I am referring to the order of the JSON elements inside the structure. After the build, it sorts the data elements. Can it not change the order of the data elements in the JSON structure ?

Example:

Before the build, the JSON structure is below:

{ “orderID”: 12345, “warehouse”, “Toronto” “compCode”: “ABC”, }

After the build, the data elements in the JSON structure is sorted alphabetically:

{ “compCode”: “ABC”, “orderID”: 12345, “warehouse”, “Toronto” }

Thanks

From: Paweł Psztyć notifications@github.com Sent: Sunday, October 13, 2019 10:38 PM To: mulesoft-labs/api-console-cli api-console-cli@noreply.github.com Cc: Man Kit Jok ManKit.Jok@lntinfotech.com; Author author@noreply.github.com Subject: Re: [mulesoft-labs/api-console-cli] JSON data elements sequence or position is not pre-served; it is sorted. (#42)

Hi, Thank you for the issue report. Order of what are you referring to? Items in navigation? Examples? There's plenty of items rendered by the console :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mulesoft-labs/api-console-cli/issues/42?email_source=notifications&email_token=ANOVW4SVSBQZ2QY5KGGZJOLQOPLPXA5CNFSM4I74IAZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBDG43Q#issuecomment-541486702, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANOVW4V5OT74F5U4CSKI23LQOPLPXANCNFSM4I74IAZQ.


The contents of this e-mail and any attachment(s) may contain confidential or privileged information for the intended recipient(s). Unintended recipients are prohibited from taking action on the basis of information in this e-mail and using or disseminating the information, and must notify the sender and delete it from their system. LTI will not accept responsibility or liability for the accuracy or completeness of, or the presence of any virus or disabling code in this e-mail"

jarrodek commented 4 years ago

This is a map. Map has no order. There's nothing I can do. This is how maps work and this is how serialization works. I am not doing it deliberately but there's also nothing I can do to influence that.