谁能告诉我一种使用GSON将此响应解析为Java POJO模型的方法?我不确定如何为此创建POJO。我是Java新手。因此,任何帮助都将不胜感激。我确实尝试过http://jsonviewer.stack.hu/#,我可以看到数据,但它没有返回POJO模型。
{
"data": {
"help_data": [{
"Help with delivery": [{
"Qus": "Estimating lastmile time",
"Ans": "is simply dummy text of the printing and typesetting industry"
},
{
"Qus": "Task not close",
"Ans": "is simply dummy text of the printing and typesetting industry"
}
]
},
{
"General issues": [{
"Qus": "Estimating lastmile time",
"Ans": "is simply dummy text of the printing and typesetting industry"
},
{
"Qus": "Batching",
"Ans": "is simply dummy text of the printing and typesetting industry"
}
]
},
{
"Legal Terms & Contitions": [{
"Qus": "Estimating lastmile time",
"Ans": "is simply dummy text of the printing and typesetting industry"
},
{
"Qus": "Batching",
"Ans": "is simply dummy text of the printing and typesetting industry"
}
]
},
{
"FAQs": [{
"Qus": "Estimating lastmile time",
"Ans": "is simply dummy text of the printing and typesetting industry"
},
{
"Qus": "Batching",
"Ans": "is simply dummy text of the printing and typesetting industry"
}
]
}
]
}
}发布于 2020-09-22 23:25:53
我强烈推荐http://www.jsonschema2pojo.org/。确保选择JSON作为源类型。
https://stackoverflow.com/questions/64012290
复制相似问题