Dato un JSON arbitrario Vorrei ottenere il valore di un singolo campo contentType
. Come fare con Jackson?Ottieni un singolo campo da JSON utilizzando Jackson
{
contentType: "foo",
fooField1: ...
}
{
contentType: "bar",
barArray: [...]
}
correlati
- How to find specified name and its value in JSON-string from Java? (GSON)
- Using gson to deserialize specific JSON field of an object (GSON)