{"blog_title":"My\u30ed\u30b0","url":"https://yunoshin.hatenablog.com/entry/2018/05/23/072051","version":"1.0","image_url":null,"type":"rich","title":"jq\u3092\u5229\u7528\u3057\u3066json\u304b\u3089csv\u306b\u5909\u63db\u3059\u308b","blog_url":"https://yunoshin.hatenablog.com/","categories":[],"published":"2018-05-23 07:20:51","author_name":"yunoshin","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"cat << EOF > data.json { \"responces\": [ { \"contentId\": \"1000\", \"results\" : [ { \"basicinfo\": { \"data_date\": \"2018-05-23\", }, \"metrics\": { \"cost\": 300 } } ] } } EOF cat data.json | \\ jq -r '.responces[] | {contentId, val:(.results[] | {date:.basicinfo.data_date, value:.metrics.cost})}' | \\ jq -r '[.co\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyunoshin.hatenablog.com%2Fentry%2F2018%2F05%2F23%2F072051\" title=\"jq\u3092\u5229\u7528\u3057\u3066json\u304b\u3089csv\u306b\u5909\u63db\u3059\u308b - My\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/yunoshin/"}