code: private static Map<String, Object> toMap(ObjectMapper objectMapper, JsonNode object) {
          return objectMapper.convertValue(object, new TypeReference<Map<String, Object>>() {
          });
      }
docs: Credits to: http://stackoverflow.com/a/24012023/194609