I am changing some code from Gson to Jackson where I have to check if the type of the current element is a primitive.
I could do something like this with Gson:
JsonElement element = entry.getValue();
if (element.isJsonPrimitive()) {
...
}
in Jackson, the Json node type is one of
JsonNodeType: { ARRAY, BINARY, BOOLEAN, MISSING, NULL, NUMBER, OBJECT, POJO, STRING }