public float getFloat(String path) {
        final Object value = get(path);
        //Groovy will always return a Double for floating point values.
        if (value instanceof Double) {
            return ((Double) value).floatValue();
        } else {
            return ObjectConverter.convertObjectTo(value, Float.class);
        }
    }
@Test
    public void
    parses_json_document_with_attribute_name_equal_to_size() {
        // When
        final float anInt = new JsonPath(JSON_PATH_WITH_SIZE).getFloat("map.size");

        // Then
        assertThat(anInt, is(12.3f));
    }