The JSON object I\'m receiving looks like this:
[{\"foo1\":\"bar1\", \"foo2\":\"bar2\", \"problemkey\": \"problemvalue\"}]
What I\'m trying
@Test public void emptyJsonParseTest() { JsonNode emptyJsonNode = new ObjectMapper().createObjectNode(); Assert.assertTrue(emptyJsonNode.asText().isEmpty()); }