How to foreach this list to get coordinates (X,Y) of Two shapes from json file:
public List<List<List<List<double>>>> coordinates { get; set; }
you can go with the following
foreach(var i in coordinates.SelectMany(x => x).SelectMany(x => x).SelectMany(x => x))
{
}
or you just box foreach calls, but i don't think a List of List of Lists etc is a good idea, what problem are you trying to solve with this?
The other answers resolve your problem, but If you need only the inner list of coordinates, i would recommend extracting that information at serialization time (preparing the document upfront) or at deserialization time using JSON.NET or ServiceStack.Text into a more manageable structure.
That will prevent the nasty code with x foreach loops or SelectMany statements, which are also loops internally because that kind of code is algorithmic hell.
SelectManythree times.