@Test
public void testFloat() throws ScriptException, NoSuchMethodException
{

    Map<String,Object> jsonObj = new HashMap<>();
    float f = 3.14f;
    jsonObj.put("x", f);
    String json = JSONUtil.toJSON(jsonObj);
    validateJSON(json);
    assertThat(json, is("{\"x\":3.14}"));
}