タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

jqに関するokinakaのブックマーク (3)

  • jackson-jqを使ってJavaでjqクエリを処理する | DevelopersIO

    よく訓練されたアップル信者、都元です。APIのデータ入出力フォーマットとして、JSONはすっかり市民権を得た感がありますね。私、XMLも意外と好(もごもご Jacksonで目的の値を取り出す さて、Javaの世界において、よく使われているJSON処理ライブラリとしてJacksonというものがあります。 ここでは、OpenWeatherMapの出力を使って説明していきます。(ただし、以下を実際に試してみるためには、OpenWeatherMapに対して無料登録をおこなって、APIキーを手に入れる必要があります。) http://api.openweathermap.org/data/2.5/weather?APPID=XXXXAPIKEYXXXX&q=Tokyo,jp 上記URLにアクセスすることによって、下記のような情報が得られます。 { "coord": { "lon": 139.69,

    jackson-jqを使ってJavaでjqクエリを処理する | DevelopersIO
  • jq

    jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect

  • 1