का उपयोग कर JSON से एकल फ़ील्ड प्राप्त करें एक मनमानी JSON को देखते हुए मैं एक फ़ील्ड contentType
का मान प्राप्त करना चाहता हूं। जैक्सन के साथ इसे कैसे करें?जैक्सन
{
contentType: "foo",
fooField1: ...
}
{
contentType: "bar",
barArray: [...]
}
संबंधित
- 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)