@Override
    public BoundingBox deserialize(final JsonElement json, final Type typeOfT,
            final JsonDeserializationContext context) {

        final BoundingBox bbox;

        if (json.isJsonArray()) {
            final JsonArray bboxJsonArray = json.getAsJsonArray();
            bbox = new BoundingBox();
            bbox.setSouth(bboxJsonArray.get(0).getAsDouble());
            bbox.setNorth(bboxJsonArray.get(1).getAsDouble());
            bbox.setWest(bboxJsonArray.get(2).getAsDouble());
            bbox.setEast(bboxJsonArray.get(3).getAsDouble());
        } else {
            throw new JsonParseException("Unexpected data: " + json.toString());
        }

        return bbox;
    }
@ Override public BoundingBox deserialize ( final JsonElement json , final Type typeOfT , final JsonDeserializationContext context ) { final BoundingBox bbox ; if ( json . isJsonArray ( ) ) { final JsonArray bboxJsonArray = json . getAsJsonArray ( ) ; bbox = new BoundingBox ( ) ; bbox . setSouth ( bboxJsonArray . get ( 0 ) . getAsDouble ( ) ) ; bbox . setNorth ( bboxJsonArray . get ( 1 ) . getAsDouble ( ) ) ; bbox . setWest ( bboxJsonArray . get ( 2 ) . getAsDouble ( ) ) ; bbox . setEast ( bboxJsonArray . get ( 3 ) . getAsDouble ( ) ) ; } else { throw new JsonParseException ( "Unexpected data: " + json . toString ( ) ) ; } return bbox ; }
{@inheritDoc}

@see com.google.gson.JsonDeserializer#deserialize(com.google.gson.JsonElement,
java.lang.reflect.Type, com.google.gson.JsonDeserializationContext)