Generic Method to Convert JSON Array String to List in java

I’ve been trying to create a utility for my project that lets you make List<DesiredTypeClass> from JSON String of the same.
Following is my current Implementation:
public static <T> List<?> stringToClassList(String data, …