public class A
{
private B[] b;
//getter setter
}
public class B
{
private String id;
//getter setter
}
I already got A object from stream as shown below but can't find way to complete this lambda to get List of ids which is inside B class.
Stream <String> lines = Files.lines(Paths.get("file.json"));
lines.map(x -> (A)gson.fromJson(x, type))...