Decodes a JSON string into a Geometry.
The decoded Geometry.
The JSON string to decode.
if the JSON string is invalid or cannot be deserialized.
if the JSON contains an invalid Geometry.