我想在Java中处理从数据库到json的对象

**My raw data is like this.**

这是我在休眠状态下查询多个join语句后获得的数据。     [         [             “爱情故事”,             85565008         ],         [             “戏剧”,             46935824         ],         [             “行动”,             39098714         ],         [             “喜剧”,             33348991         ],         [             “恐怖”,             16597704         ],         [             “社交戏剧”,             7875711         ],         [             “动画”,             1760884         ]     ]

I want the data from above date in following Format in Java.

[
    {
        Genre:"Love Story",
       Collection: 85565008
    },
    {
        Genre:" Action",
       Collection: 2452435234
    },
    {
        Genre:"Comedy",
       Collection: 2345245243
    }
]

> Can you please help me with this