タグ

cliとjmespathに関するjinjin252525のブックマーク (2)

  • JMESPath チュートリアル | DevelopersIO

    渡辺です。 AWSCLIのqueryオプションで利用できるJMESPathですが、導入部分の敷居は低いのですが、使いこなそうとするとなかなか難解な仕様な気がします。 そこで、複雑なqueryも書けるように、チュートリアルを紹介します。 JMESPathとは JMESPathはJSONのクエリ言語です。 ひらたく言えば、JMESPathを利用することで、JSONを対象としてフィルターや抽出を行い結果を取得できます。 jqが近いツールですが、jqはコマンド(ツール)であり、JMESPathはクエリ言語という点が相違点です。 JMESPathは、AWS CLI (v1.2以降)で利用できるため、結果となるJSONオブジェクトを加工するのに便利です(AWS CLIのフィルターとクエリーの使い方についてまとめてみた)。 基書式 最もシンプルな書式は identifier(識別子)です。 JSONオ

    JMESPath チュートリアル | DevelopersIO
  • JMESPath Tutorial — JMESPath

    JMESPath Tutorial¶ This is a tutorial of the JMESPath language. JMESPath is a query language for JSON. You can extract and transform elements from a JSON document. The examples below are interactive. You can change the JMESPath expressions and see the results update automatically. For each of these examples, the JMESPath expression is applied to the input JSON on the left, and the result of evalut

  • 1