public static void main(String[] args) throws IOException {

       ObjectMapper objectMapper = new ObjectMapper();

       Map<String,Object> map = objectMapper.readValue(new File("D:\\Java SE\\src\\json\\object\\user.json"), new TypeReference<Map<String,Object>>(){});

        System.out.println(map.get("name"));
        System.out.println(map.get("age"));

        ArrayList<String> arrayList = (ArrayList<String>) map.get("messages");

       arrayList.forEach(u -> System.out.println(u));


    }