There is an array of objects. Each object has coordinates. Nesting levels are different, as is the number of pairs of coordinates. The problem is that they are suitable for creating layers, and to follow the link, these coordinates need to be reversed (reverse (), for example). How to set a cycle so that it goes through all pairs of coordinates and swaps them?
var ao=[ { "type": "Feature", "properties": { "NAME": "Центральный", "ABBREV": "ЦАО" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 37.51393, 55.75842 ], [ 37.51567, 55.75909 ] ], [ 37.51927, 55.76047 ], [ 37.51993, 55.76072 ], [ ... ] ... ]] } }, и т.д. ]