我需要使用Jackson庫解析相對複雜的JSON。你們能否建議我應該具備哪些Java類結構以及用什麼Jackson方法來解析以下JSON對象。與Jackson解析複雜的JSON對象
它是這樣的:
{
"firstField": "Something One",
"secondField": "Something Two",
"thirdField": [
{
"thirdField_one": "Something Four",
"thirdField_two": "Something Five"
},
{
"thirdField_one": "Something Six",
"thirdField_two": "Something Seven"
}
],
"fifthField": [
{
"fifthField_one": "Something… ",
"fifthField_two": "Something...",
"fifthField_three": 12345
},
{
"fifthField_one": "Something",
"fifthField_two": "Something",
"fifthField_three": 12345
}
]
}
您是否使用傑克遜解決方案? – andro