How to convert json array to java Object
Use com.amazonaws.util.json.Jackson
import com.amazonaws.util.json.Jackson;
import java.util.ArrayList;
import lombok.Data;
@Data
class DeviceList {
private ArrayList<String> devices;
}
DeviceList deviceList = Jackson.fromJsonString("{\"devices\":[\"Mobile\", \"Desktop\"]}", DeviceList.class);