Ana içeriğe geç Tamamlayıcı içeriğe geç

JSON_PATH

JSON nesnelerinden veri ayıklar.

Söz dizimi

JSON_PATH(path, JSON)

Bağımsız Değişkenler

Ad Tür Açıklama Varsayılan Değer
yol dize JSON Yol İfadesi
JSON dize JSON Belgesi içeren bir dize

Örnekler

Yol JSON Çıktı
"$[*].author.name" "[{"name": "The Great Gatsby", "author": {"name": "F. Scott Fitzgerald"}}, {"name": "Nineteen Eighty-Four", "author": {"name": "George Orwell"}}] [F. Scott Fitzgerald, George Orwell]
"net_id" "{ "net_id": 41 }" 41
"net_id" "{ "net_id": [41, 42] }" [41,42]
"net_id[*]" "{ "net_id": [41, 42] }" [41, 42]
"net_id.parent" "{ "net_id": [41, 42] }" null
"$[*]" "[1,2,3]" [1, 2, 3]
"$[*].author" "[{"name":"The Great Gatsby", "author":{"name": "F. Scott Fitzgerald"}}, {"name":"Nineteen Eighty-Four", "author": {"name": "George Orwell"}}] [{"name":"F. Scott Fitzgerald"}, {"name":"George Orwell"}]

Bu sayfa size yardımcı oldu mu?

Bu sayfa veya içeriği ile ilgili bir sorun; bir yazım hatası, eksik bir adım veya teknik bir hata bulursanız lütfen bize bildirin!