eightban's memo

残しておきたい記事をまとめてみました。このブログに書いてあるドキュメントやブログで配布しているファイルの使用によって発生するいかなる損害に対してもこのブログの管理者は責任を負いません。使用する場合は自己責任のもとに使用してください。

jqコマンド

jsonファイルを扱うには

更新日:

Notepad++にアドインNPPJSONViewer

https://notepad-plus-plus.org/

https://github.com/kapilratnani/JSON-Viewer/releases

NPPJSONViewer_x64.zipダウンロードして展開します

NPPJSONViewer.dllplugins\NPPJSONViewerフォルダーに貼り付けます

plugins\NPPJSONViewer\NPPJSONViewer.dll

メニューのplugins->JSONViewer->format json /compress json

jqコマンド windows

https://stedolan.github.io/jq/

サンプル

type f.txt | jq-win64.exe > g.txt

type f.txt | jq-win64.exe .textStyles > g.txt
type g.txt | jq-win64.exe sort_by^(.textType^) > h.txt

type f.txt | jq-win64.exe -r '.[] | [.id, .item1, .item2, .item3]|@csv' > f.csv

-jqコマンド

Copyright© eightban's memo , 2024 All Rights Reserved Powered by STINGER.