I'd like to use Jackson to parse JSON Bing results, but I'm a little confused about how to use it. Here is an example of the JSON received from Bing:
{
"SearchResponse":{
"Version":"2.2",
"Query":{
"SearchTerms":"jackson json"
},
"Web":{
"Total":1010000,
"Offset":0,
"Results":[
{
"Title":"Jackson JSON Processor - Home",
"Description":"News: 04-Nov-2011: Jackson 1.9.2 released; 23-Oct-2011: Jackson 1.9.1 released; 04-Oct-2011: Jackson 1.9.0 released (@JsonUnwrapped, value instantiators, value ...",
"Url":"http:\/\/jackson.codehaus.org\/",
"CacheUrl":"http:\/\/cc.bingj.com\/cache.aspx?q=jackson+json&d=4616347212909127&w=cbaf5322,11c785e8",
"DisplayUrl":"jackson.codehaus.org",
"DateTime":"2011-12-18T23:12:00Z",
"DeepLinks":"[...]"
}
]
}
}
}
I really only need the data in the results array. This array could have anywhere from 0 to n results. Could someone provide an example that illustrates how to use Jackson to deserialize "Results"?