Apache-tajo-json-extract-path-text

提供:Dev Guides
移動先:案内検索

json_extract_path_text()

次のクエリで* json_extract_path_text(json text、json_path text)*関数を確認しましょう。

問い合わせ

default> select json_extract_path_text('{"tutorial" :
   {"key" : "tajo"}}','$.tutorial.key') as path;

結果

上記のクエリは、次の結果を生成します。

path
-------------------------------
tajo

クエリは、JSONパスに基づいてJSON文字列からJSON文字列「チュートリアル」を抽出します。