public static void main(String[] args) {

    String json = "{\"name\":\"sergii\",\"age\":\"25\"}";

        ObjectMapper objectMapper = new ObjectMapper();


        Map<String,String> map = new HashMap<String,String>();
  try{
        map = objectMapper.readValue(json, new TypeReference<HashMap<String, String>>() {
        });
      System.out.println(map);

  } catch (Exception e) {
      e.printStackTrace();
  }



    }