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

jp always alphabetically sorts the output? #20

Open
DawMatt opened this issue Sep 11, 2019 · 0 comments
Open

jp always alphabetically sorts the output? #20

DawMatt opened this issue Sep 11, 2019 · 0 comments

Comments

@DawMatt
Copy link

DawMatt commented Sep 11, 2019

Hi,

Is there a way to prevent JP from alphabetically sorting the output? I've tried using the -e and -f parameters, just the -f parameter, and no command line arguments other than the expression.

Attached is a very simple example in a data.zip file.

Using the following command on Windows 10, I'm finding the contents of the out.json file is alphabetically sorted. e.g.
jp -f data.json -e expr.json > out.json

Similarly these invocations experience the same result:

  • jp -f data.json "@" > out.json
  • type data.json | jp "@" > out.json

data.zip

The VS Code extension honours the order of the expression statements. Is there a way for jp to behave similarly?

Thanks, Matt

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

No branches or pull requests

1 participant