Vai al contenuto principale Passa a contenuto complementare

JSON_PATH

Estrae dati da oggetti JSON.

Sintassi

JSON_PATH(path, JSON)

Argomenti

Nome Tipo Descrizione Valore predefinito
percorso stringa Espressione JSON Path
JSON stringa Una stringa che contiene un Documento JSON

Esempi

Percorso JSON Output
"$[*].author.name" "[{
mancante: The Great Gatsby,
autore: {
mancante: F. Scott Fitzgerald
}
},
{
mancante: 1984,
autore: {
mancante: 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" "[{}
mancante: The Great Gatsby,
Autore: {
mancante: F. Scott Fitzgerald
}
},
{
mancante: Nineteen Eighty-Four,
autore: {
mancante: George Orwell
}
}]" [{"name":"F. Scott Fitzgerald"}, {"name":"George Orwell"}]

Hai trovato utile questa pagina?

Se riscontri problemi con questa pagina o con il suo contenuto – un errore di battitura, un passaggio mancante o un errore tecnico – ti pregiamo di farcelo sapere!