jp always alphabetically sorts the output?
まだ誰も着手していません。
評価
調査の方向性
レポートに記載されているコマンドラインの呼び出しから始め、添付された data.zip の例を使って順序付けの動作を再現してください。jp が式の結果をどのようにシリアライズするかを追跡し、その後、VS Code extension と同様に、出力が式の順序を保持し、アルファベット順にソートしていないことを確認してください。
索引モデルが issue の本文から書いたものです。
説明
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.jsontype data.json | jp "@" > out.json
The VS Code extension honours the order of the expression statements. Is there a way for jp to behave similarly?
Thanks, Matt
- 主要言語
- Python
- スター
- 787
- フォーク
- 48
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jmespath/jp のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
-
Linux brew installオープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
似ている issue
-
bug TAG: unit tests
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
learningequality/ricecooker#898 ·
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
freelawproject/litigant-portal#1285 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
jmespath/jmespath.py#401 ·
-
least_squares returns a nonfinite objective for an invalid initial residual対応中かも @sylvesterkaczmarek が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
google-deepmind/mujoco#4023 ·
メンテナーはふだん 11 日以内に返信
-
Five Australian birds: Red-capped Parrot, Red-winged Fairywren, Gilbert’s Honeyeater, Western Spinebill, Western Wattlebird対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
arnegiacomo/fugleramme#427 ·
メンテナーはふだん 1 日以内に返信