LoginSignup
1
1

More than 3 years have passed since last update.

[json ⇒ csv] ファイル変換

Posted at

jq コマンドをダウンロードする

下記のサイトから[jq-win64.exe]をダウンロードする。
https://stedolan.github.io/jq/

[jq.exe]を設置する

[jq-win64.exe] ⇒ [jq.exe]にファイル名を変更する。
C:\Windows\System32\jq.exe に設置する。

[json ⇒ csv] ファイル変換コマンド

[コマンドプロンプト]でのコマンド入力は Linuxコマンドとは若干異なる。
[Gitbash]を利用することで Linuxコマンドと表記が統一される。

cat ZipcodeList.json | jq -r '.[] | [.zipcode, .pref, .city, .town] | @csv' > ZipcodeList.csv
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1