I am having some trouble building a class which will parse out gson as I expect it to.
I created a class.
public class JsonObjectBreakDown {
public
The problem here is that you have an array of arrays of arrays of floating point numbers in your JSON. Your class should be
public class JsonObjectBreakDown {
public String type;
public List<List<float[]>> coordinates = new ArrayList<>();
}
Parsing with the above and trying
System.out.println(p.coordinates.size());
System.out.println(p.coordinates.get(0).size());
System.out.println(Arrays.toString(p.coordinates.get(0).get(0)));
yields
1
2
[-66.9, 18.05]