JSONPathリクエスト構文 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - JSONデータ型

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
2020年9月
Language
日本語
Last Update
2021-03-30
dita:mapPath
ja-JP/gzn1554761068186.ditamap
dita:ditavalPath
ja-JP/gzn1554761068186.ditaval
dita:id
evi1472243742653
Product Category
Software
Teradata Vantage

次のJSONPath構文は、JSONPathの仕様(http://goessner.net/articles/JsonPath/)を反映しています。

. [ $ [children [...]] ] .

構文要素

$
ルート オブジェクトまたは要素。
children
{.|..} { child_specification | options }
child_specification
{ * | name_string [ options ] }
options
[ { index | expression | filter } ]
色付きまたは太字の角括弧を入力する必要があります。
index
{ * |
  integer [ : | , integer | : integer : integer ] |
  : integer
}
expression
( @.LENGTH [ {+|-|*|/} integer ] )
このコンテキストでは、LENGTHは現在のJSON配列の長さであり、配列内の要素の数と等しくなります。
filter
?(@.element_string [ number_comparison | =~string ] )
フィルタ(スクリプト)式を適用します。
number_comparison
{ <= | < | > | >= | == | != } integer
@
現在のオブジェクトまたは要素。
integer
符号付き整数。
element_string
要素の名前を指定する文字列。
=~ string
文字列比較式。