Convert JsonNode object to Map

Got here trying to find the answer myself. Dug a little deeper and found a bit the answer here

Basically just use the ObjectMapper to convert the value for you:

ObjectMapper mapper = new ObjectMapper();
Map<String, Object> result = mapper.convertValue(jsonNode, new TypeReference<Map<String, Object>>(){});

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)