I have an array of Polygons where each object looks like this
{'type': 'Polygon', 'coordinates': (((-98.03706782884247, 44.72279408402323), (-98.03706782884247, 44.71524098343729), (-98.02951472825653, 44.71524098343729), (-98.02951472825653, 44.72279408402323), (-98.03706782884247, 44.72279408402323)),)}
I need to convert the coordinates to an array and it should look like
[[[-98.03706782884247, 44.72279408402323],[-98.03706782884247, 44.71524098343729], [-98.02951472825653, 44.71524098343729], [-98.02951472825653, 44.72279408402323], [-98.03706782884247, 44.72279408402323]]]
Is there a pre-defined method which is available for polygons?