【发布时间】:2016-08-08 16:41:17
【问题描述】:
任何人都可以帮助如何使用 Retrofit 的回调为下面的 json 格式创建一个 pojo 类。
我试过http://www.jsonschema2pojo.org/,但我认为它的格式不太好
谢谢。
[
{
"trends": [
{
"tweet_volume": 3200,
"events": null,
"name": "#GanaPuntosSi",
"promoted_content": null,
"query": "%23GanaPuntosSi",
"url": "http://twitter.com/search/?q=%23GanaPuntosSi"
},
{
"tweet_volume": 4200,
"events": null,
"name": "#WordsThatDescribeMe",
"promoted_content": null,
"query": "%23WordsThatDescribeMe",
"url": "http://twitter.com/search/?q=%23WordsThatDescribeMe"
},
{
"tweet_volume": 1200,
"events": null,
"name": "#10PersonasQueExtra\u00f1oMucho",
"promoted_content": null,
"query": "%2310PersonasQueExtra%C3%B1oMucho",
"url": "http://twitter.com/search/?
}
}
]
【问题讨论】: