Riferimento alla classe Jsonb

Funzioni membro pubbliche

~Jsonb ()
Distruttore.
Jsonb ()
Costruisce un oggetto Jsonb predefinito. Equivale a Jsonb("null").
Jsonb (const Jsonb &in)
Costruisce un nuovo oggetto Jsonb da un oggetto Jsonb esistente (copia profonda).
JsonbJsonbContainer *in, int)
Costruisce un nuovo oggetto Jsonb da un JsonbContainer con lunghezza.
Jsonb (const char *jsonString)
Costruisce un nuovo oggetto Jsonb da una stringa JSON.
Jsonb (const char *jsonString, int len)
Costruisce un nuovo oggetto Jsonb da una stringa JSON con lunghezza.
int fill (char *ptr) const
Riempie ptr con i dati di questo oggetto.
Jsonb clone () const
Crea una copia (profonda) di questo oggetto.
JbvType type () const
Tipo di questo documento JSON.
char * typeName () const
Nome del tipo di documento JSON.
Jsonb get (const char *key) const
Ottiene il valore JSON per chiave.
Jsonb get (int index) const
Ottiene un elemento JSON per indice.
Jsonb get (const Jsonb &path) const
Ottiene un elemento JSON per percorso.
char * toString () const
Converte in stringa.
char * pretty () const
Converte in stringa rientrata.
bool toBool () const
Converte in bool.
int8 toInt8 () const
Converte in int8.
int16 toInt16 () const
Converte in int16.
int32 toInt32 () const
Converte in int32.
int64 toInt64 () const
Converte in int64.
float toFloat () const
Converte in float.
double toDouble () const
Converte in doppio.
int arrayLength () const
Numero di elementi in questo array JSON (se si tratta di un array JSON).
bool contiene (const Jsonb &altro) const
Verifica se questo documento JSON è un superset di un altro documento JSON.
bool contiene (const char *altro) const
Verifica se questo documento JSON è un superset di un altro documento JSON.
bool contained (const Jsonb &other) const
Verifica se questo documento JSON è un sottoinsieme di un altro documento JSON.
bool contained (const char *other) const
Verifica se questo documento JSON è un sottoinsieme di un altro documento JSON.
bool exists (const char *key) const
Controlla se una chiave esiste in questo documento JSON.
NullableBool exists (const JsonPath &path) const
Controlla se la query JsonPath restituisce un elemento.
NullableBool exists (const JsonPath &path, bool silent) const
Controlla se la query JsonPath restituisce un elemento.
NullableBool exists (const JsonPath &path, const Jsonb &vars) const
Controlla se la query JsonPath restituisce un elemento.
NullableBool exists (const JsonPath &path, const Jsonb &vars, bool silent) const
Controlla se la query JsonPath restituisce un elemento.
bool existsAny (const Jsonb &keys) const
Verifica se una delle chiavi fornite esiste in questo documento JSON. Più...
bool existsAny (const Jsonb &keys, bool silent) const
Verifica se una delle chiavi fornite esiste in questo documento JSON.
bool existsAny (const char *keys) const
Verifica se una delle chiavi fornite esiste in questo documento JSON.
bool existsAny (const char *keys, bool silent) const
Controlla se uno dei " keys " forniti esiste in questo documento JSON.
bool existsAll (const Jsonb &keys) const
Controlla se tutte le chiavi fornite esistono in questo documento JSON.
bool existsAll (const Jsonb &keys, bool silent) const
Controlla se tutte le chiavi fornite esistono in questo documento JSON.
bool existsAll (const char *keys) const
Controlla se tutti i 'keys forniti esistono in questo documento JSON.
bool existsAll (const char *keys, bool silent) const
Controlla se tutti i 'keys forniti esistono in questo documento JSON.
Jsonb & stripNulls ()
Rimuove ricorsivamente tutte le coppie chiave-valore il cui valore è 'null da un oggetto JSON.
Jsonb & insert (const Jsonb &path, const Jsonb &value)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const char *path, const Jsonb &value)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const Jsonb &path, const char *value)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const char *path, const char *value)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const Jsonb &path, const Jsonb &value, bool after)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const char *path, const Jsonb &value, bool after)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const Jsonb &path, const char *value, bool after)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & insert (const char *path, const char *value, bool after)
Inserisce un nuovo valore in questo documento JSON.
Jsonb & set (const Jsonb &path, const Jsonb &value)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const char *path, const Jsonb &value)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const Jsonb &path, const char *value)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const char *path, const char *value)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const Jsonb &path, const Jsonb &value, bool create)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const char *path, const Jsonb &value, bool create)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const Jsonb &path, const char *value, bool create)
Imposta il valore di un elemento identificato da 'path.
Jsonb & set (const char *path, const char *value, bool create)
Imposta il valore di un elemento identificato da 'path.
Jsonb & remove (const char *key)
Rimuove una coppia chiave-valore da un oggetto JSON utilizzando la chiave.
Jsonb & remove (int index)
Rimuove un elemento da un array JSON utilizzando l'indice.
Jsonb & removeArray (const Jsonb &keys)
Rimuove più coppie chiave-valore da un oggetto JSON utilizzando un array di chiavi.
Jsonb & removeArray (const char *keys)
Rimuove più coppie chiave-valore da un oggetto JSON utilizzando un array di chiavi.
Jsonb & removePath (const Jsonb &path)
Rimuove un elemento JSON identificato da 'path.
Jsonb & removePath (const char *path)
Rimuove un elemento JSON identificato da 'path.
NullableBool match (const JsonPath &path) const
Restituisce il risultato della verifica del predicato JsonPath.
NullableBool match (const JsonPath &path, bool silent) const
Restituisce il risultato della verifica del predicato JsonPath.
NullableBool match (const JsonPath &path, const Jsonb &vars) const
Restituisce il risultato della verifica del predicato JsonPath.
NullableBool match (const JsonPath &path, const Jsonb &vars, bool silent) const
Restituisce il risultato della verifica del predicato JsonPath.
int query (const JsonPath &path, Jsonb &out) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array (alias di queryArray()).
int query (const JsonPath &path, Jsonb &out, bool silent) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array (alias di queryArray()).
int query (const JsonPath &path, Jsonb &out, const Jsonb &vars) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array (alias di queryArray()).
int query (const JsonPath &path, Jsonb &out, const Jsonb &vars, bool silent) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array (alias di queryArray()).
bool queryFirst (const JsonPath &path, Jsonb &out) const
Ottiene il primo elemento JSON restituito dalla query JsonPath.
bool queryFirst (const JsonPath &path, Jsonb &out, bool silent) const
Ottiene il primo elemento JSON restituito dalla query JsonPath.
bool queryFirst (const JsonPath &path, Jsonb &out, const Jsonb &vars) const
Ottiene il primo elemento JSON restituito dalla query JsonPath.
bool queryFirst (const JsonPath &path, Jsonb &out, const Jsonb &vars, bool silent) const
Ottiene il primo elemento JSON restituito dalla query JsonPath.
int queryArray (const JsonPath &path, Jsonb &out) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array.
int queryArray (const JsonPath &path, Jsonb &out, bool silent) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array.
int queryArray (const JsonPath &path, Jsonb &out, const Jsonb &vars) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array.
int queryArray (const JsonPath &path, Jsonb &out, const Jsonb &vars, bool silent) const
Ottiene tutti gli elementi JSON restituiti dalla query JsonPath e avvolge il risultato in un array.
bool operator== (const Jsonb &rhs) const
Operatore di uguaglianza.
bool operator== (const char *rhs) const
Operatore di uguaglianza.
bool operator!= (const Jsonb &rhs) const
Operatore di disuguaglianza.
bool operator!= (const char *rhs) const
Operatore di disuguaglianza.
bool operator> (const Jsonb &rhs) const
Operatore maggiore di.
bool operator> (const char *rhs) const
Operatore maggiore di.
bool operator>= (const Jsonb &rhs) const
Operatore maggiore o uguale.
bool operator>= (const char *rhs) const
Operatore maggiore o uguale.
bool operator< (const Jsonb &rhs) const
Meno di un operatore.
bool operator< (const char *rhs) const
Meno di un operatore.
bool operator<= (const Jsonb &rhs) const
Operatore minore o uguale.
bool operator<= (const char *rhs) const
Operatore minore o uguale.
Jsonb operator+ (const Jsonb &rhs) const
Concatena questo documento JSON con un altro documento JSON.
Jsonb operator+ (const char *rhs) const
Concatena questo documento JSON con un altro documento JSON.
Jsonb & operator+= (const Jsonb &rhs)
Concatena questo documento JSON con un altro documento JSON e assegna il risultato a 'this.
Jsonb & operator+= (const char *rhs)
Concatena questo documento JSON con un altro documento JSON e assegna il risultato a 'this.
Jsonb operator- (int rhs) const
Rimuove un elemento da un array JSON utilizzando l'indice.
Jsonb operator- (const char *rhs) const
Rimuove una coppia chiave-valore da un oggetto JSON utilizzando la chiave.
Jsonb & operator-= (int rhs)
Rimuove un elemento da un array JSON utilizzando l'indice e assegna il risultato a 'this.
Jsonb & operator-= (const char *rhs)
Rimuove una coppia chiave-valore da un oggetto JSON utilizzando la chiave e assegna il risultato a 'this.
Jsonb & operator= (const Jsonb &rhs)
Operatore di assegnazione.
Jsonb operator[] (int index) const
Ottiene un elemento JSON per indice.
Jsonb operator[] (const char *key) const
Ottiene il valore JSON per chiave.

Funzioni statiche dei membri pubblici

statico int cmp (const Jsonb &lhs, const Jsonb &rhs)
Confronta due documenti JSON.
jsonb concat statico (const Jsonb &a, const Jsonb &b)
Concatena due documenti JSON.
statico Jsonb concat (const char *a, const Jsonb &b)
Concatena due documenti JSON.
jsonb concat (const Jsonb &a, const char *b)
Concatena due documenti JSON.
statico Jsonb concat (const char *a, const char *b)
Concatena due documenti JSON.

amici

classe Json
bool operator== (const char *lhs, const Jsonb &rhs)
Operatore di uguaglianza Jsonb.
bool operator!= (const char *lhs, const Jsonb &rhs)
Operatore di disuguaglianza Jsonb.
bool operator> (const char *lhs, const Jsonb &rhs)
Operatore Jsonb maggiore di.
bool operator>= (const char *lhs, const Jsonb &rhs)
Operatore Jsonb maggiore o uguale.
bool operator< (const char *lhs, const Jsonb &rhs)
Meno di un operatore.
bool operator<= (const char *lhs, const Jsonb &rhs)
Operatore Jsonb minore o uguale.
Jsonb operator+ (const char *lhs, const Jsonb &rhs)
Concatena due documenti JSON.