Query result:
|  student_id  |  name  |  age  |  group  | 
---------------+--------+-------+----------  
| 1413001      | Ann    | 14    | Tennis  |
| 1413001      | Ann    | 14    | Choir   |
If I select records like this, I want to make them to JSON Object like
{student_id: "1413001", name: "Ann", Age: "14", group:["Tennis", "Choir"]}
How can I make them like that in Java or SQL?
 
    