JSONのパースには、jqというツールが有名である。 が、昨日、aws-cliにて、--query オプションにより jmespath形式でのJSONパースを利用できる、ということで jmespathそのものを試してみることにした。 jmespathをインストール pipでインストールできる。
JSONのパースには、jqというツールが有名である。 が、昨日、aws-cliにて、--query オプションにより jmespath形式でのJSONパースを利用できる、ということで jmespathそのものを試してみることにした。 jmespathをインストール pipでインストールできる。
{ "locations": [ {"name": "Seattle", "state": "WA"}, {"name": "New York", "state": "NY"}, {"name": "Bellevue", "state": "WA"}, {"name": "Olympia", "state": "WA"} ] } Result Try it Out! Enter an expression in the search box to see JMESPath in action. The expression is evaluated against the JSON data and the result is shown in the result pane. To learn more about JMESPath, check out the JMESPath Tut
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く