I'm using Vraptor 4 and the intent is to create a polygon convert class that does deserialization and which serialize. My problem is just deserializing. How to deserialize a geometric polygon with Gson?
Follow the json where I need to deserialize
{
"perimeter": {
"type": "Polygon",
"coordinates": [
[
[
-60.908203125,
-18.6328125
],
[
-54.140625,
-14.677734375
],
[
-51.6796875,
-23.291015625
],
[
-58.88671875,
-22.1484375
],
[
-60.908203125,
-18.6328125
]
]
]
}
}