String href = "customer/123456";ReadableRepresentation party = newBaseResource(href).withLink("ns:users", BASE_URL + href + "?users").withProperty("id", 123456).withProperty("age", 33).withProperty("name", "Example Resource").withProperty("optional", Boolean.TRUE).withProperty("expired", Boolean.FALSE);
Is there any way to add non-string properties when building the HAL representation? This throws an exception for me when trying to use a boolean for instance. --