'Java Transform Json to List<Object>

I have a json

{
    "name":["A","B"],
    "class":"Science"
}

How can I convert it to List of Students (A,Science)(B,Science)

Students
{
    public String name;
    public String class;
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source